
406
Function #22 .fcSend
Send message to another TCP socket
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:
.soSdNrm
0
Normal
.soSdOOB
1
Out of band data
.soSdDnRt
4
Bypass pathway control function
Return value: SENDSIZE% Number of bytes transmitted
Komentarze do niniejszej Instrukcji