NCBI C++ ToolKit
|
Search Toolkit Book for CListeningSocket
#include <connect/ncbi_socket.hpp>
Public Member Functions | |
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 |
![]() | |
virtual | ~CPollable () |
Protected Attributes | |
LSOCK | m_Socket |
EOwnership | m_IsOwned |
Additional Inherited Members | |
![]() | |
CPollable (void) | |
Listening socket (to accept connections on the server side)
Definition at line 627 of file ncbi_socket.hpp.