TCP Passive Open
Passive Open is used when running a server application, for
example a Web Server. The TCP socket opens in passive mode and waits
for incoming connections.
Do the following steps to open a passive TCP connection:
-
Enable the TCP socket in the Net_Config.c configuration
file.
-
Allocate a free TCP socket with the tcp_get_socket() function
call.
-
Activate the TCP socket listen mode with the tcp_listen() function call.
RL-TCPnet can handle multiple connections on the same port.
Several TCPnet applications such as: Web server, FTP server, Telnet
server, etc. are using this concept.