Poco::Remoting::Binary::Transport

class SocketFactory

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

Description

SocketFactory is used by the Transport to create a socket for the connection to the listener on the server.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Member Summary

Member Functions: createSocket

Inherited Functions: duplicate, referenceCount, release

Types

Ptr

typedef Poco::AutoPtr < SocketFactory > Ptr;

Constructors

SocketFactory

SocketFactory();

Creates the SocketFactory.

Destructor

~SocketFactory virtual

virtual ~SocketFactory();

Destroys the SocketFactory.

Member Functions

createSocket virtual

virtual Poco::Net::StreamSocket createSocket(
    const Poco::URI & uri
);

Create and return a Poco::Net::StreamSocket (or subclass of it), connected to the address given by URI.

The default implementation simply creates a Poco::Net::StreamSocket.