NCBI C++ ToolKit
Public Member Functions | Private Attributes | Friends | List of all members
CServer_Listener Class Reference

Search Toolkit Book for CServer_Listener

#include <connect/impl/server_connection.hpp>

+ Inheritance diagram for CServer_Listener:
+ Collaboration diagram for CServer_Listener:

Public Member Functions

 CServer_Listener (IServer_ConnectionFactory *factory, unsigned short port)
 
virtual CStdRequestCreateRequest (EServIO_Event event, CServer_ConnectionPool &connPool, const STimeout *timeout)
 
virtual void Activate (void)
 
virtual void Passivate (void)
 
unsigned short GetPort (void) const
 
- Public Member Functions inherited from IServer_ConnectionBase
virtual ~IServer_ConnectionBase ()
 
virtual EIO_Event GetEventsToPollFor (const CTime **) const
 
virtual bool IsOpen (void)
 
virtual bool IsReadyToProcess (void)
 
virtual void OnTimeout (void)
 
virtual void OnTimer (void)
 
virtual void OnOverflow (EOverflowReason)
 
- Public Member Functions inherited from CListeningSocket
 CListeningSocket (void)
 CListeningSocket:: More...
 
 CListeningSocket (unsigned short port, unsigned short backlog=64, TSOCK_Flags flags=fSOCK_LogDefault)
 
virtual ~CListeningSocket (void)
 Call Close(), then self-destruct. More...
 
EIO_Status GetStatus (void) const
 Return eIO_Closed if not yet bound or Close()'d. More...
 
EIO_Status Listen (unsigned short port, unsigned short backlog=64, TSOCK_Flags flags=fSOCK_LogDefault)
 
EIO_Status Accept (CSocket *&sock, const STimeout *timeout=kInfiniteTimeout, TSOCK_Flags flags=fSOCK_LogDefault) const
 
EIO_Status Accept (CSocket &sock, const STimeout *timeout=kInfiniteTimeout, TSOCK_Flags flags=fSOCK_LogDefault) const
 
EIO_Status Close (void)
 
virtual EIO_Status GetOSHandle (void *handle_buf, size_t handle_size, EOwnership ownership=eNoOwnership) const
 Access to the system-specific socket handle. More...
 
unsigned short GetPort (ENH_ByteOrder byte_order) const
 Return port which the server listens on. More...
 
EOwnership SetOwnership (EOwnership if_to_own)
 Specify if this "CListeningSocket" is to own the underlying "LSOCK". More...
 
LSOCK GetLSOCK (void) const
 Access to the underlying "LSOCK". More...
 
bool IsEmpty (void) const
 
virtual POLLABLE GetPOLLABLE (void) const
 
- Public Member Functions inherited from CPollable
virtual ~CPollable ()
 

Private Attributes

unique_ptr< IServer_ConnectionFactorym_Factory
 
unsigned short m_Port
 

Friends

class CAcceptRequest
 

Additional Inherited Members

- Protected Member Functions inherited from CPollable
 CPollable (void)
 
- Protected Attributes inherited from CListeningSocket
LSOCK m_Socket
 
EOwnership m_IsOwned
 

Detailed Description

Definition at line 117 of file server_connection.hpp.


The documentation for this class was generated from the following files:
Modified on Wed Apr 17 13:08:53 2024 by modify_doxy.py rev. 669887