File Information
Library: RemotingNG/TCP
Package: TCP
Header: Poco/RemotingNG/TCP/FrameQueue.h
Description
A queue of frames.
Inheritance
Direct Base Classes: FrameHandler
All Base Classes: Poco::RefCountedObject, FrameHandler
Member Summary
Member Functions: dequeueFrame, handleFrame
Inherited Functions: duplicate, handleFrame, referenceCount, release
Types Aliases
Ptr
using Ptr = Poco::AutoPtr < FrameQueue >;
Constructors
FrameQueue
FrameQueue(
Connection::Ptr pConnection,
Poco::UInt32 frameType,
Poco::UInt32 channel
);
Creates the FrameQueue, accepting frames having the given type and channel.
Destructor
~FrameQueue
~FrameQueue();
Destroys the FrameQueue.
Member Functions
dequeueFrame
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.
handleFrame
bool handleFrame(
Connection::Ptr pConnection,
Frame::Ptr pFrame
);