Library: RemotingNG
Package: Transport
Header: Poco/RemotingNG/ServerTransport.h
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.
Known Derived Classes: Poco::RemotingNG::TCP::ServerTransport
Member Functions: beginRequest, endRequest, sendReply
Creates a ServerTransport.
virtual ~ServerTransport();
Destroys the ServerTransport.
virtual Deserializer & beginRequest() = 0;
Prepare a Deserializer for reading the request message.
Returns a Deserializer that can be used to read the request message.
virtual void endRequest() = 0;
Signals the ServerTransport that request processing is finished for this request.
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.