Previous: Transfer variable within the local machine over an Octave stream, Up: Functions possibly helpful in parallel execution [Index]
select
on Octave streamsNote that for cluster connections Call Unix select
for data connections should be used
instead.
Calls Unix select
, see the respective manual.
The following interface was chosen: read_fids, write_fids, except_fids: vectors of stream-ids. timeout: seconds, negative for infinite. nfds: optional, default is Unix’ FD_SETSIZE (platform specific). An error is returned if nfds or a filedescriptor belonging to a stream-id plus one exceeds FD_SETSIZE. Return values are: n: number of ready streams. ridx, widx, eidx: index vectors of ready streams in read_fids, write_fids, and except_fids, respectively.