A socket is an end point of a bidirectional communication.
a port is a logical data connection that can be used to exchange data without the use of a temporary file or storage.
Association between Socket and Port
A socket is associated with a port and there can be multiple sockets associated with a port.
There can be a single passive socket associated with a port that is waiting for incoming connections.
There can be multiple active sockets that correspond to connections that are open in that port.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.