Specifications

Chapter 18. TCP/IP
441
Syntax:
CALL "SOCKET.FN3" 17 MAXFD%, READFDSET$, WRITEFD-
SET$, EXCEPTFDSET$, TIMEOUT, RESULT%
Description: This function waits for changes in the socket identifier sets (read, write,
and exception conditions) for the specified socket identifiers.
The only exception condition is out of band data.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API select() function.
Parameters:
MAXFD% Number of socket identifiers + 1
READFDSET$ Socket identifier set to monitor for read
WRITEFDSET$ Socket identifier set to monitor for write
EXCEPTFDSET$ Socket identifier set to check for exception conditions
TIMEOUT Waiting period (in seconds)
The waiting period (
TIMEOUT) must be one of the following values:
-1 No waiting period
0 No timeout
Other time interval in seconds
Return value:
RESULT% Number of sockets that are ready.
After a timeout,
RESULT% contains 0.
Run-time errors:
Syntax:
CALL "SOCKET.FN3" 18 SOCKFDSET$
Description: This function initializes the specified socket identifier set.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API FD_ZERO macro.
Parameters:
SOCKFDSET$ Socket identifier set
Return value: (None)
Function #17: Monitor socket requests
Error code Meaning
105h
Power-off detected. (BHT-7500S only)
209h
Socket identifier is invalid.
216h
A parameter is invalid.
Function #18: Initialize socket identifier set