Setting TCP


Some parameters may be needed to set before using TCP. On SSL or web socket communication, especially, SSL setting is required before connection by set command of pid_ioctl function.

pid_ioctl($pid, "set ITEM VALUE");

ITEM means setting items and VALUE is possible value of the item.

Available TCP Items

ITEM VALUE Description
nodelay 0 Enable Nagle algorithm
1 Disable Nagle algorithm
api ssl Use SSL
tls Use SSL
※ available on F/W 1.5.0 or later
ws Use Web Socket server
ssl method client SSL client (version: automatic)
※ available on F/W 1.3.1 or later
server SSL server (version: automatic)
※ available on F/W 1.3.1 or later
ws path PATH Set path of web socket URI
mode 0 Set data type of web socket: text
1 Set data type of web socket: binary
proto PROTOCOL Set protocol of web socket
origin ADDR Specify a host to allow connection

※ Note : It is recommended to set "ssl method" to "client" or "server".(required to use F/W 1.3.1 or later)

※ Note : Both "ssl3_client" and "ssl3_server" commands on "ssl method" are no more supported on F/W 1.5.0 or later.

※ Note : Both "tls1_client" and "tls1_server" commands on "ssl method" are no more supported on F/W 2.1.0 or later.

※ Note : Both "telnet" and "ssh" commands on "api" are no more supported on F/W 2.1.0 or later.

※ Caution : TCP Nagle Algorithm is to improve effective data transmission by reducing the number of segments. Thus, it may accompany a little delay.

※ Caution : Only TCP 0 to 3 are available for setting SSL. In addition, it is not possible to set the TCP id to another api mode before product reboots.