An example use case is white-list or black-list IP address filtering.
Subclasses must override the accept() method.
Direct Base Classes: Poco::RefCountedObject
All Base Classes: Poco::RefCountedObject
Member Functions: accept
virtual bool accept(
const StreamSocket & socket
) = 0;
Returns false if the socket should be closed immediately.
The socket can be prevented from being closed immediately if false is returned by creating a copy of the socket. This can be used to handle certain socket connections in a special way, outside the TCPServer framework.