nlGroupAddSocket, nlGroupDeleteSocket

add or delete a socket to or from a group

C Specification

NLboolean nlGroupAddSocket(NLint group, NLsocket socket)

NLboolean nlGroupDeleteSocket(NLint group, NLsocket socket)

Parameters

group

[in]The group to use.

socket

[in]The socket to add or delete.

Description

nlGroupAddSocket adds a socket to a group object. Groups can be used in place of sockets when calling nlWrite.

nlGroupDeleteSocket deletes a socket from a group object.

Return values

NL_TRUE if no error occurs, otherwise, a value of NL_FALSE is returned, and the specific error code can be retrieved by calling nlGetError

Error codes

NL_INVALID_SOCKET : The socket is not valid.
NL_INVALID_GROUP : The group is not valid.
NL_SOCKET_NOT_FOUND : The socket was not found in the group.

See also

nlWrite,
nlGroupCreate,
nlGroupDestroy,
nlGroupGetSockets


Back to the HawkNL index page


Go directly to the main HawkNL page at Hawk Software

© 2000-2002 Phil Frisbie.

Valid XHTML 1.0!