KCML_poll

Purpose

Poll status of an array of sockets, pipes or files

Definition

DEFSUB 'KCML_poll(BYREF p$()_KCML_POLLSET), nTimeout) AS Integer

Parameters

pArray of KCML_POLLSET records
nTimeoutOptional timeout in ms, 0 for poll, -1 for infinite timeout

Return

Count of streams with non-zero status flags, zero if timeout expired or interrupted by a signal and -1 for an error.

Description

Poll status of an array of sockets, pipes or files

See also

Internal KCML Functions, Internally defined structures and Internally defined enumerations and constants.