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

zTcpServer_Accept
zTcpServer functions
C

    zStatus zTcpServer_Accept(zTcpServer server, z64u timeout, zTcpClient* client);

Parameters

Parameters | Description
zTcpServer server | A zTcpServer object in the listening state.
z64u timeout | The timeout interval.
zTcpClient* client | Returns a zTcpClient object representing the newly-established connection, or zNIL.

Description

Blocks until an incoming connection is established, or the specified timeout interval elapses.

Remarks

The returned connection object can be zNIL if the connection was closed by the remote client before being accepted.

File

zTcpServer.h

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