
Chapter 18. TCP/IP
433
Syntax:
CALL "SOCKET.FN3" 6 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:
Run-time errors:
Function #6: Get socket option
Option Number
(
OPTNAME%)
Description
Values for Option (
OPTION%)
2
Keep-alive timer enable/disable 0 (disabled), 1 (enabled)
Option Number
(OPTNAME%)
Description
Values for Option (
OPTION)
8
Transmit buffer size (byte) 1 to 8192
9
Receive buffer size (byte) 1 to 8192
26
Retry count 0 to 32
30
Initial round trip time (ms) 100 to 3000
31
Minimum round trip time (ms) 100 to 1000
32
Maximum round trip time (ms) 100 to 60000
Error code Meaning
209h
Socket identifier is invalid.
216h
A parameter is invalid.
Commentaires sur ces manuels