NCBI C++ ToolKit
Public Types | Public Member Functions | List of all members
IServer_ConnectionFactory Class Referenceabstract

Search Toolkit Book for IServer_ConnectionFactory

IServer_ConnectionFactory:: More...

#include <connect/server.hpp>

+ Inheritance diagram for IServer_ConnectionFactory:

Public Types

enum  EListenAction { eLAFail = 0 , eLAIgnore = 1 , eLARetry = 2 }
 What to do if the port is busy. More...

Public Member Functions

virtual ~IServer_ConnectionFactory ()
virtual IServer_ConnectionHandlerCreate (void)=0
virtual EListenAction OnFailure (unsigned short *)
 Return desired action if the port, mentioned in AddListener is busy. More...

Detailed Description


Factory to be registered with CServer instance. You usually do not need to implement it, default template CServer_ConnectionFactory will suffice. You NEED to implement it manually to pass server-wide parameters to ConnectionHandler instances, e.g. for implementation of gentle shutdown.

Definition at line 387 of file server.hpp.

The documentation for this class was generated from the following file:
Modified on Sun Apr 14 05:25:45 2024 by rev. 669887