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

zTcpServer_EnableReuseAddress
zTcpServer functions
C

    zStatus zTcpServer_EnableReuseAddress(zTcpServer server, zBool reuse);

Parameters

Parameters | Description
zTcpServer server | A zTcpServer object.
zBool reuse | zTRUE to enable reuse of IP addresses; zFALSE otherwise.

Description

Enables or disables reuse of a local end point within a short period of time.

Remarks

The option is typically used to allow a server to rebind to a local end point while a previous socket with the same local end point is in the TIME_WAIT state. This can be useful when a server must be stopped and started within a brief interval, but there is a small risk that packets with identical source/destination information could be misdirected to the new socket.

This option is disabled by default.

File

zTcpServer.h

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