(
void) {
return true; }
95{ m_Handler->SetSocket(
this); }
97{
returnm_Handler->GetEventsToPollFor(alarm_time); }
101 virtual void OnTimeout(
void) { m_Handler->OnTimeout(); }
103m_Handler->OnOverflow(reason);
106 returnm_Handler->IsReadyToProcess();
108 virtual bool IsOpen(
void);
IServer_ConnectionFactory::
IServer_ConnectionHandler::
void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
EIO_Status Listen(unsigned short port, unsigned short backlog=64, TSOCK_Flags flags=fSOCK_LogDefault, ESwitch ipv6=eDefault)
EIO_Status GetStatus(void) const
Return eIO_Closed if not yet bound or Close()'d.
virtual void OnTimeout(void)
EServIO_Event
Extended copy of the type EIO_Event allowing to distinguish between connection closing from client an...
std::string g_ServerConnTypeToString(enum EServerConnType conn_type)
virtual void Passivate(void)
virtual void OnTimer(void)
virtual void OnTimeout(void)
EListenAction
What to do if the port is busy.
CServer_Listener(IServer_ConnectionFactory *factory, unsigned short port)
virtual bool IsReadyToProcess(void)
virtual CStdRequest * CreateRequest(EServIO_Event event, CServer_ConnectionPool &connPool, const STimeout *timeout)
volatile EServerConnType type
EOverflowReason
Error codes for OnOverflow method in IServer_ConnectionHandler.
virtual ~IServer_ConnectionBase()
unsigned short GetPort(void) const
virtual void Passivate(void)
virtual EIO_Event GetEventsToPollFor(const CTime **) const
virtual EIO_Event GetEventsToPollFor(const CTime **alarm_time) const
virtual void OnOverflow(EOverflowReason reason)
unique_ptr< IServer_ConnectionFactory > m_Factory
virtual void Activate(void)
virtual bool IsOpen(void)
virtual void Activate(void)
virtual CStdRequest * CreateRequest(EServIO_Event event, CServer_ConnectionPool &connPool, const STimeout *timeout)=0
unique_ptr< IServer_ConnectionHandler > m_Handler
virtual void OnOverflow(EOverflowReason)
CServer_Connection(IServer_ConnectionHandler *handler)
virtual bool IsReadyToProcess(void)
EIO_Event
I/O event (or direction).
@ eIO_Success
everything is fine, no error occurred
#define NCBI_XCONNECT_EXPORT
Framework to create multithreaded network servers with thread-per-request scheduling.
static SLJIT_INLINE sljit_ins st(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4