Library: Net
Package: TCPServer
Header: Poco/Net/TCPServerConnectionFactory.h
A factory for TCPServerConnection objects.
The TCPServer class uses a TCPServerConnectionFactory to create a connection object for each new connection it accepts.
Subclasses must override the createConnection() method.
The TCPServerConnectionFactoryImpl template class can be used to automatically instantiate a TCPServerConnectionFactory for a given subclass of TCPServerConnection.
Known Derived Classes: HTTPServerConnectionFactory, TCPServerConnectionFactoryImpl, Poco::OSP::Shell::ShellConnectionFactory, Poco::Remoting::Binary::BinaryServerConnectionFactory
Member Functions: createConnection
typedef Poco::SharedPtr < TCPServerConnectionFactory > Ptr;
Creates the TCPServerConnectionFactory.
virtual ~TCPServerConnectionFactory();
Destroys the TCPServerConnectionFactory.
virtual TCPServerConnection * createConnection(
const StreamSocket & socket
) = 0;
Creates an instance of a subclass of TCPServerConnection, using the given StreamSocket.