Poco::Remoting::Binary

class TransportFactory

Library: Remoting/Binary
Package: Binary
Header: Poco/Remoting/Binary/TransportFactory.h

Description

TransportFactory for Binary transports

Inheritance

Direct Base Classes: Poco::Remoting::TransportFactory

All Base Classes: Poco::Remoting::TransportFactory

Member Summary

Member Functions: create, registerFactory, unregisterFactory

Inherited Functions: create

Constructors

TransportFactory

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.

Destructor

~TransportFactory virtual

~TransportFactory();

Destroys the TransportFactory.

Member Functions

create

Poco::Remoting::Transport * create();

Creates a Binary transport

registerFactory static

static void registerFactory(
    bool lateConnect = false,
    bool reconnect = false,
    Transport::SocketFactory::Ptr pSocketFactory = 0
);

Helper function to register the factory at the manager.

unregisterFactory static

static void unregisterFactory();

Helper function to unregister the factory at the manager.