Poco::RemotingNG::TCP

class FrameHandler

Library: RemotingNG/TCP
Package: TCP
Header: Poco/RemotingNG/TCP/FrameHandler.h

Description

A frame handler handles frames on behalf of a Connection.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Known Derived Classes: FrameQueue

Member Summary

Member Functions: handleFrame

Inherited Functions: duplicate, referenceCount, release

Types

Ptr

typedef Poco::AutoPtr < FrameHandler > Ptr;

Member Functions

handleFrame virtual

virtual bool handleFrame(
    Connection::Ptr pConnection,
    Frame::Ptr pFrame
) = 0;

Handle the given frame.

If the handler accepts the frame, it should return true. In this case, the FrameHandler is responsible for returning the Frame to the Connection's Frame pool when it's no longer needed.

If the handler does not accept the frame, it should return false.

Securely control IoT edge devices from anywhere   Connect a Device