Specifications
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