
Chapter 18. TCP/IP
483
Syntax:
CALL
"SOCKET.FN3"
.fcFDISSET
SOCKFD%,
SOCKFDSET$,
FDISSET%
Description:
This function gets the status of the specified socket identifier in the speci-
fied socket identifier set.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API FD_ISSET macro.
Parameters:
SOCKFD%
Socket identifier
SOCKFDSET$
Socket identifier set
Return value:
FDISSET%
Socket identifier status
The socket identifier status (
FDISSET%
) must be one of the following val-
ues:
Syntax:
CALL
"SOCKET.FN3"
.fcSend
SOCKFD%,
SENDBUFF$[()],
SENDLEN%,
SENDMODE%,
SENDSIZE%
Description:
This function transmits data from the specified buffer to the IP address and
port number connected to the specified socket identifier.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API sendto() function.
Parameters:
SOCKFD%
Socket identifier
SENDBUFF$[()]
Transmit buffer
SENDLEN%
Number of bytes to transmit
SENDMODE%
Transmit mode
The transmit buffer (
SENDBUFF$
) can be either a string non-array or
string array variable. The maximum size for a string is 255 bytes; for a
string array, 4096.
The transmit mode (
SENDMODE%
) must be one of the following values:
Return value:
SENDSIZE%
Number of bytes transmitted
.fcFDISSET
Get socket identifier status from socket identifier set
.soFDSet
0
No change
.soFDNoSet
1
Change in status
.fcSend
Send message to another TCP socket
.soSdNrm
0
Normal
.soSdOOB
1
Out of band data
.soSdDnRt
4
Bypass pathway control function
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...