|
| enum | AcceptStatus { ACCEPT_ERROR = -1
, ACCEPT_TIMEOUT = 0
, ACCEPT_SUCCESS = 1
, ACCEPT_FAILURE = 2
} |
|
|
| TcpServerSocket (const TcpServerSocket &) |
|
TcpServerSocket & | operator= (const TcpServerSocket &) |
Definition at line 173 of file socket.h.
◆ AcceptStatus
| enum NSROOT::TcpServerSocket::AcceptStatus |
◆ TcpServerSocket()
| TcpServerSocket::TcpServerSocket |
( |
| ) |
|
◆ ~TcpServerSocket()
| TcpServerSocket::~TcpServerSocket |
( |
| ) |
|
|
virtual |
◆ AcceptConnection()
| TcpServerSocket::AcceptStatus TcpServerSocket::AcceptConnection |
( |
TcpSocket & | socket, |
|
|
int | timeout ) |
◆ Bind()
| bool TcpServerSocket::Bind |
( |
unsigned | port | ) |
|
Bind the socket to the given port on any local addresses.
- Parameters
-
- Returns
- true on success, else false
Definition at line 670 of file socket.cpp.
References IsValid().
◆ Close()
| void TcpServerSocket::Close |
( |
| ) |
|
◆ Create()
| bool TcpServerSocket::Create |
( |
SOCKET_AF_t | af | ) |
|
Initialize the socket for the given protocol.
- Returns
- true on success, else false
Definition at line 625 of file socket.cpp.
References IsValid().
◆ GetErrNo()
| int NSROOT::TcpServerSocket::GetErrNo |
( |
| ) |
const |
|
inline |
- Returns
- the last error occuring on call
Definition at line 182 of file socket.h.
◆ GetHandle()
| net_socket_t NSROOT::TcpServerSocket::GetHandle |
( |
| ) |
const |
|
inline |
- Returns
- the socket handle
Definition at line 237 of file socket.h.
◆ GetRemoteAddrInfo()
| std::string TcpServerSocket::GetRemoteAddrInfo |
( |
| ) |
|
- Returns
- the address string of the accepted remote
Definition at line 784 of file socket.cpp.
◆ IsValid()
| bool TcpServerSocket::IsValid |
( |
| ) |
const |
◆ ListenConnection()
| bool TcpServerSocket::ListenConnection |
( |
int | queueSize = SOCKET_LISTEN_QUEUE_SIZE | ) |
|
Prepare to accept connections on the socket.
- Parameters
-
| queueSize | the maximum length for the queue of pending connections |
- Returns
- true on success, else false
Definition at line 706 of file socket.cpp.
References IsValid().
◆ m_addr
◆ m_errno
| int NSROOT::TcpServerSocket::m_errno |
|
private |
◆ m_requestQueueSize
| unsigned NSROOT::TcpServerSocket::m_requestQueueSize |
|
private |
◆ m_socket
| net_socket_t NSROOT::TcpServerSocket::m_socket |
|
private |
The documentation for this class was generated from the following files:
- /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/socket.h
- /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/socket.cpp