Library: RemotingNG/TCP
Package: TCP
Header: Poco/RemotingNG/TCP/FrameQueue.h
A queue of frames.
Direct Base Classes: FrameHandler
All Base Classes: Poco::RefCountedObject, FrameHandler
Member Functions: dequeueFrame, handleFrame
Inherited Functions: duplicate, handleFrame, referenceCount, release
typedef Poco::AutoPtr < FrameQueue > Ptr;
FrameQueue(
Connection::Ptr pConnection,
Poco::UInt32 frameType,
Poco::UInt32 channel
);
Creates the FrameQueue, accepting frames having the given type and channel.
~FrameQueue();
Destroys the FrameQueue.
Frame::Ptr dequeueFrame(
Poco::Timespan timeout
);
If there is at least one frame in the queue, removes it from the queue and returns it. Otherwise waits until a frame arrives or the timeout expires.
bool handleFrame(
Connection::Ptr pConnection,
Frame::Ptr pFrame
);