Using TCP/IP from APL2
Open a TCP session (Server)
- Create a socket
- Associate this socket with a Port
- This socket has to wait for input sessions
- Accept an incomming connexion
- This socket is identified by a number.
- (Port 80 is used for a Web Server)
- we can specify also our IP address
- Parameter : the queue size (waiting for incoming sessions)
- After this order, AP119 begin to wait for input sessions. The APL2 functions
are not waiting...
- This socket becomes a passif socket.
- After this order, The APL function begin to wait for proposed sessions.
Control is return when a new session is proposed.