class Poco::Net::TCPServerConnectionFactory
Overview
A factory for TCPServerConnection objects. Moreā¦
#include <TCPServerConnectionFactory.h> class TCPServerConnectionFactory { public: // typedefs typedef Poco::SharedPtr<TCPServerConnectionFactory> Ptr; // methods virtual TCPServerConnection* createConnection(const StreamSocket& socket) = 0; }; // direct descendants class HTTPServerConnectionFactory; template <class S> class TCPServerConnectionFactoryImpl;
Detailed Documentation
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.
Methods
virtual TCPServerConnection* createConnection(const StreamSocket& socket) = 0
Creates an instance of a subclass of TCPServerConnection, using the given StreamSocket.