
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.
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...