File Information
Library: WebTunnel
Package: WebTunnel
Header: Poco/WebTunnel/RemotePortForwarder.h
Description
This class is used by RemotePortForwarder to create a StreamSocket for connecting to the target endpoint.
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
Creates the SocketFactory.
Destructor
~SocketFactory
virtual ~SocketFactory();
Destroys the SocketFactory.
Member Functions
createSocket
virtual Poco::Net::StreamSocket createSocket(
const Poco::Net::SocketAddress & addr,
Poco::Timespan timeout
);
Creates and connects a socket to the given address. If the socket cannot be connected within the given timeout, throws a Poco::TimeoutException.
The default implementation always creates a Poco::Net::StreamSocket.