
Chapter 18. TCP/IP
451
Syntax:
CALL "SOCKET.FN3" 45 PARA%, DATA$
Description: This function sets the specified TCP/IP system settings to the new value.
Parameters:
PARA% Setting number
DATA$ New setting for TCP/IP system settings
Return value: (None)
Correspondence tables:
See Table under function #44.
Syntax:
CALL "SOCKET.FN3" 46 SOCKFD%, PATTERN%, TIMEOUT%,
RESULT%
Description: This function waits until the specified TCP socket is in the specified state
or the specified time elapsed.
Parameters:
SOCKFD% Socket identifier
PATTERN% Desired socket state
TIMEOUT% Waiting period (in milliseconds, 100 ms resolution)
The socket state (
PATTERN%) must be &h0020, the value indicating that
the opposite end has sent FIN to close the socket. Only TCP sockets sup-
port this function.
Note: Specifying an invalid state sometimes stops processing.
TIMEOUT% must be one of the following values:
-1 No timeout
0 Read current state
1 to 32767 Wait specified time (timer resolution: 100 ms)
Return value:
RESULT% Current socket state
RESULT% contains the current socket state. After a timeout, RESULT%
contains 0.
Run-time errors:
Function #45: Set TCP/IP system settings
Function #46: Get TCP socket status
Error code Meaning
105h
Power-off detected. (BHT-7500S only)
209h
Socket identifier is invalid.
216h
A parameter is invalid.
Comentarios a estos manuales