Specifications
486
Syntax: CALL "SOCKET.FN3" .fcSSckOpt SOCKFD%, OPTNAME%,
option
where option is OPTION% or OPTION
Description: This function sets the specified option for the specified socket to the new
value.
BSD4.4 socket API equivalent: This function is equivalent to the BSD4.4
socket API setsockopt() function.
Parameters:
SOCKFD% Socket identifier
OPTNAME% Option name
OPTION%/OPTION New setting for socket option of type integer/real
Return value: (None)
Correspondence tables:
*To be set in units of 100.
Run-time errors:
.fcSSckOpt Set socket options
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)
Initial
values
.soSndBuff 8 Transmit buffer size (byte) 1 to 8192 8192
.soRcvBuff 9 Receive buffer size (byte) 1 to 8192 8192
.soMaxRT 26 Retry count 0 to 32 12
.soTIMEWAIT 29 Status retaining period after clos-
ing TCP socket (seconds)
0 to 60 60
.soRTODef 30 Initial round trip time (ms)* 100 to 3000 3000
.soRTOMin 31 Minimum round trip time (ms)* 100 to 1000 100
.soRTOMax 32 Maximum round trip time (ms)* 100 to 60000 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.
201h
Cannot set option after connection established
209h
Socket identifier is invalid.
216h
A parameter is invalid.