Specifications
Chapter 18. TCP/IP
473
Syntax:
CALL "SOCKET.FN3" .fcGSckOpt SOCKFD%, OPTNAME%,
option
where option is OPTION% or OPTION
Description: This function gets the specified option setting for the specified socket.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API getsockopt() function.
Parameters:
SOCKFD% Socket identifier
OPTNAME% Option name
Return value:
option Current setting for socket option (OPTION%/
OPTION
) of type integer/real
Correspondence tables:
*Shown in units of 100. (e.g., 1 = 100 ms).
Run-time errors:
.fcGSckOpt Get socket option
Option Number
(OPTNAME%)
Description Values for Option (OPTION%)
.soKepAliv 2 Keep-alive timer enable/disable .soDisable 0 Disabled
.soEnable 1 Enabled
Option Number
(OPTNAME%)
Description Values for Option (OPTION)
.soSndBuff 8 Transmit buffer size (byte) 1 to 8192
.soRcvBuff 9 Receive buffer size (byte) 1 to 8192
.soMaxRT 26 Retry count 0 to 32
.soTIMEWAIT 29 Status retaining period after clos-
ing TCP socket (seconds)
0 to 60
.soRTODef 30 Initial round trip time (ms)* 100 to 3000
.soRTOMin 31 Minimum round trip time (ms)* 100 to 1000
.soRTOMax 32 Maximum round trip time (ms)* 100 to 60000
Error code Meaning
106h
An internal error has occurred in the TCP/IP module during data
transmission.
107h
The TCP/IP module has not been initiated.
108h
The memory for the TCP/IP module has became insufficient dur-
ing data transmission.
209h
Socket identifier is invalid.
216h
A parameter is invalid.