Poco::RemotingNG

class ServerTransport

Library: RemotingNG
Package: Transport
Header: Poco/RemotingNG/ServerTransport.h

Description

ServerTransport objects are used as mediators between a Listener, receiving a request, and the ORB, Skeleton and MethodHandlers, processing the request.

The ServerTransport allows the Skeleton to deserialize the request message in order to determine the method name, select an appropriate MethodHandler, based on the method name and pass control to the MethodHandler. The MethodHandler then uses the ServerTransport to send back a response message.

Inheritance

Known Derived Classes: Poco::RemotingNG::TCP::ServerTransport

Member Summary

Member Functions: beginRequest, endRequest, sendReply

Constructors

ServerTransport

ServerTransport();

Creates a ServerTransport.

Destructor

~ServerTransport virtual

virtual ~ServerTransport();

Destroys the ServerTransport.

Member Functions

beginRequest virtual

virtual Deserializer & beginRequest() = 0;

Prepare a Deserializer for reading the request message.

Returns a Deserializer that can be used to read the request message.

endRequest virtual

virtual void endRequest() = 0;

Signals the ServerTransport that request processing is finished for this request.

sendReply virtual

virtual Serializer & sendReply(
    SerializerBase::MessageType messageType
) = 0;

Prepares the ServerTransport to send a response message back to the caller.

The given MessageType must be either MESSAGE_REPLY, MESSAGE_EVENT_REPLY or MESSAGE_FAULT.

Returns a Serializer for writing the reply (or fault reply) message.