GrPrepareSelect()

Name

GrPrepareSelect() -- Prepare an fdset for a select

Synopsis

void GrPrepareSelect ( int * maxfd , void * rfdset );

Description

This function prepares a file descriptor set for use in a subsequent select() call. The file descriptor set is initialized with the nano-X client/server socket descriptor and all registered external file descriptors. The parameter maxfd is set to the highest of the file descriptors in the set.

Parameters

TypeNameDescription
int*maxfdPointer to an integer to receive the highest file descriptor in the file descriptor set.
void*rfdsetA pointer to a caller supplied file descriptor set structure to fill in.

See Also

GrServiceSelect(), GrRegisterInput(), GrMainLoop().