What are the difference between an active open and a passive open in a TCP socket?
- A passive open is the creation of a listening socket, to accept incoming connections. It uses
socket(), bind(), listen(),
followed by anaccept()
loop. - An active open is the creation of a connection to a listening port by a client. It uses
socket()
andconnect()
.
at least in simple terms: passive open is on the SERVICE (server or listener) side active is the CLIENT (source or initiat