I am studying basics of networking and get confused about it. Can any one explain difference between the two in simple words.
Active: the client is responsible for the active opening of a TCP connection. It means that the client must pro-actively send a connection request (SYN) to an already known server (IP and port) using the connect operation. Passive: the server is in charge of the passive opening of TCP connections.
Active sockets are used by clients who initiate connection requests with CONNECT. By default, SOCKET creates active sockets. Passive sockets are used by servers to accept connection requests with the CONNECT macro.
The program that initiates the closedown process by issuing the first close() call is said to initiate an active close. The program that closes in response to the initiation is said to initiate a passive close.
A passive socket or acceptor socket is a type of socket that is used to wait for connection establishment requests from remote applications that communicate over the TCP protocol.
socket(), bind(), listen(),
followed by an accept()
loop.socket()
and connect()
.at least in simple terms: passive open is on the SERVICE (server or listener) side active is the CLIENT (source or initiat
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With