nlGroupCreate, nlGroupDestroy

create or destroy a group

C Specification

NLint nlGroupCreate(void)

NLboolean nlGroupDestroy(NLint group)

Parameters

group

[in]The group to destroy.

Description

nlGroupCreate returns a new group object. Groups can have socket objects added to them, and they can be used in place of a socket when calling nlWrite.

nlGroupDestroy destroys a group object.

Return values

If no error occurs, nlGroupCreate returns a new group object, otherwise a value of NL_INVALID is returned, and the specific error code can be retrieved by calling nlGetError

If no error occurs, nlGroupDestroy returns NL_TRUE, otherwise NL_FALSE is returned, and the specific error code can be retrieved by calling nlGetError

Error codes

NL_OUT_OF_GROUPS : No more groups can be created.
NL_OUT_OF_MEMORY : Not enough memory.

See also

nlWrite,
nlGroupAddSocket,
nlGroupDeleteSocket,
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!