Computer Science, asked by shaleenthind9204, 1 year ago

Difference between active and passive socket in networking

Answers

Answered by rizwannizarudin
0

Sockets come in two primary flavors. An active socket is con­nect­ed to a remote active socket via an open data con­nec­tion... A passive socket is not con­nect­ed, but rather awaits an in­com­ing con­nec­tion, which will spawn a new active socket once a con­nec­tion is es­tab­lished ...


Each port can have a single passive socket binded to it, await­ing in­com­ing con­nec­tions, and mul­ti­ple active sockets, each cor­re­spond­ing to an open con­nec­tion on the port. It's as if the factory worker is waiting for new mes­sages to arrive (he rep­re­sents the passive socket), and when one message arrives from a new sender, he ini­ti­ates a cor­re­spon­dence (a con­nec­tion) with them by del­e­gat­ing someone else (an active socket) to ac­tu­al­ly read the packet and respond back to the sender if nec­es­sary. This permits the factory worker to be free to receive new packets.

Answered by StaceeLichtenstein
5

Difference between active and passive socket in networking is given below .

Explanation:

  • The active socket shall be linked through an open data interface to a remote active socket where as the passive socket is not linked through an open data interface to a remote active socket.
  • In the active socket the termination of the connection damages the active sockets to each exit point where as In passive networking the termination of the connection will not damages the active sockets to each exit point .

Learn More :

  • brainly.in/question/16738860
Similar questions