|
libcmutils 0.6.5
Multi-platform C99 utility library
|
Server socket object. More...
Data Fields | |
| CMSocketResult(* | Accept )(const CMUTIL_ServerSocket *server, CMUTIL_Socket **res, long timeout) |
| Accept a new connection on the server socket. | |
| void(* | Close )(CMUTIL_ServerSocket *server) |
| Close the server socket. | |
| void(* | SetSilent )(CMUTIL_ServerSocket *socket, CMBool silent) |
| Suppress this library's own error logging on this listener. | |
Server socket object.
| CMSocketResult(* CMUTIL_ServerSocket::Accept) (const CMUTIL_ServerSocket *server, CMUTIL_Socket **res, long timeout) |
Accept a new connection on the server socket.
This function accepts a new incoming connection on the server socket within the specified timeout period and returns the accepted socket.
| server | The server socket object to accept connections from. |
| res | Pointer to store the accepted socket object. |
| timeout | The accept operation timeout in milliseconds. |
| void(* CMUTIL_ServerSocket::Close) (CMUTIL_ServerSocket *server) |
Close the server socket.
This function closes the server socket and releases any associated resources.
| server | The server socket object to be closed. |
| void(* CMUTIL_ServerSocket::SetSilent) (CMUTIL_ServerSocket *socket, CMBool silent) |
Suppress this library's own error logging on this listener.
Behaves like CMUTIL_Socket::SetSilent, and does not affect the sockets handed out by Accept.
| socket | The server socket object. |
| silent | CMTrue to stop logging errors for this listener. |