Specifications

494
Syntax:
CALL "SOCKET.FN3" .fcTSysSet PARA%, data
where data is DATA% or DATA$
Description: This function sets the specified TCP/IP system settings to the new value.
Parameters:
PARA% Item number
data New setting for TCP/IP system settings (DATA%/DATA$)
Return value: (None)
Correspondence tables:
See Table under function #44.
Syntax:
CALL "SOCKET.FN3" .fcTStsGet SOCKFD%, PATTERN%, TIM-
EOUT%, 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:
Return value:
RESULT% Current socket state
RESULT% contains the current socket state. After a timeout, RESULT%
contains 0.
Run-time errors:
.fcTSysSet Set TCP/IP system settings
.fcTStsGet Get TCP socket status
.soStRmtCl &h0020 Close socket from the opposite end
(FIN received)
.soNoWait -1 No timeout
.soNotTOut 0 Read current state
1 to 32767 Wait specified time
(timer resolution: 100 ms)
Error code Meaning
105h
Power-off detected
209h
Socket identifier is invalid.
216h
A parameter is invalid.