Library: Remoting/Binary
Package: Binary
Header: Poco/Remoting/Binary/TransportFactory.h
TransportFactory for Binary transports
Direct Base Classes: Poco::Remoting::TransportFactory
All Base Classes: Poco::Remoting::TransportFactory
Member Functions: create, registerFactory, unregisterFactory
Inherited Functions: create
TransportFactory(
bool lateConnect = false,
bool reconnect = false,
Transport::SocketFactory::Ptr pSocketFactory = 0
);
Creates the TransportFactory.
If lateConnect is false the transport will be immediatley connected, otherwise it will be connected with the very first request.
If reconnect is true, the transport will automatically attempt to reconnect a socket that becomes disconnected.
If pSocketFactory is null, the default socket factory implementation will be used which simply creates a Poco::Net::StreamSocket.
For a secure connection, create a subclass of Transport::SocketFactory that returns a Poco::Net::SecureStreamSocket if the URI's schema is "remotings:", and a Poco::Net::StreamSocket otherwise.
~TransportFactory();
Destroys the TransportFactory.
Poco::Remoting::Transport * create();
Creates a Binary transport
static void registerFactory(
bool lateConnect = false,
bool reconnect = false,
Transport::SocketFactory::Ptr pSocketFactory = 0
);
Helper function to register the factory at the manager.
static void unregisterFactory();
Helper function to unregister the factory at the manager.