zStatus zTcpServer_Listen(zTcpServer server, zIPAddress address, z32u port, z32u backlog);
|
Parameters |
Description |
|
zTcpServer server |
A zTcpServer object. |
|
zIPAddress address |
A local IP address to which the server should bind, or zIP_ADDRESS_ANY. |
|
z32u port |
A local port number to which the server should bind, or zIP_PORT_ANY. |
|
z32u backlog |
The maximum number of pending connection requests to enqueue. |
Places the server into the listening state, to monitor for incoming connection requests.
The server can be placed in the listening state only once per zTcpServer object. After the server is shut down, the zTcpServer object cannot be used to listen again on another port.
zTcpServer.h