What is the difference between active open and passive open in a TCP socket?

I learn the basics of networking and get confused about this. Anyone can explain the difference between two simple words.

+13
networking
source share
2 answers
  • Passive opening is the creation of a listening socket to receive incoming connections. It uses socket(), bind(), listen(), followed by an accept() loop.
  • An active discovery is to create a connection to the listening port by the client. It uses socket() and connect() .
+25
source share

at least in simple words: passive opening on the side of the SERVICE (server or listener) active CLIENT (source or initiate

+1
source share

All Articles