Zen API | Contents | Reference | Previous | Up | Next

zTcpServer_Listen
zTcpServer functions
C

    zStatus zTcpServer_Listen(zTcpServer server, zIPAddress address, z32u port, z32u backlog);

Parameters

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.

Description

Places the server into the listening state, to monitor for incoming connection requests.

Remarks

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.

File

zTcpServer.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.
Contents | Reference