DEFRECORD KCML_POLLSET

An array of these records can be passed to 'KCML_poll(). Each of the streams will be tested for the required statuses, for hangup or for an error. The status will be returned as an OR of KCML_POLLFLAG flags.
FLD namePack formatPurpose
KCML_POLL_StreamUINT(2)The stream from an OPEN # of the socket
KCML_POLL_TestReadBOOLTest if bytes are available to be read
KCML_POLL_TestWriteBOOLTest if bytes can be written without blocking
KCML_POLL_IsReadableBOOLBytes can be read without blocking
KCML_POLL_IsWriteableBOOLBytes can be written without blocking
KCML_POLL_IsClosedBOOLThe socket has been closed
KCML_POLL_IsErrorBOOLThe socket has flagged an error
KCML_POLL_IsInvalidBOOLThe socket is invalid
KCML_POLL_UserUser defined data

More info