File Information
Library: RemotingNG/TCP
Package: TCP
Header: Poco/RemotingNG/TCP/ServerTransport.h
Description
The ServerTransport implementation for the RemotingNG TCP transport.
Inheritance
Direct Base Classes: Poco::RemotingNG::ServerTransport, Poco::Runnable, Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject, Poco::RemotingNG::AttributedObject, Poco::RemotingNG::ServerTransport, Poco::Runnable
Member Summary
Member Functions: authenticate, authorize, beginRequest, endRequest, run, sendReply, waitReady
Inherited Functions: authenticate, authorize, beginRequest, clearAttributes, countAttributes, duplicate, endRequest, enumerateAttributes, getAttribute, hasAttribute, operator =, referenceCount, release, removeAttribute, reportException, run, sendReply, setAttribute
Types Aliases
Ptr
using Ptr = Poco::AutoPtr < ServerTransport >;
Constructors
ServerTransport
ServerTransport(
Listener & _listener,
CredentialsStore::Ptr pCredentialsStore,
const Poco::SharedPtr < ChannelInputStream > & pRequestStream,
const Poco::SharedPtr < ChannelOutputStream > & pReplyStream,
bool compressed,
bool authenticated
);
Creates a ServerTransport.
Destructor
~ServerTransport
~ServerTransport();
Destroys the ServerTransport().
Member Functions
authenticate
bool authenticate(
const std::string & method
);
authorize
bool authorize(
const std::string & method,
const std::string & permission
);
beginRequest
Deserializer & beginRequest();
endRequest
void endRequest();
run
void run();
See also: Poco::Runnable::run()
sendReply
Serializer & sendReply(
SerializerBase::MessageType messageType
);
waitReady
void waitReady();
Waits until the server thread is ready.