Sockets-
A socket represents a single connection between two network applications. These
two applications nominally run on different computers, but sockets can also be
used for interprocess communication on a single computer. Applications can
create multiple sockets for communicating with each other. For example you have
a server and a client. On the client side the client knows the hostname of the
machine on which the server is running and the port number on which the server
is listening. To make a connection request, the client tries to rendezvous with
the server on the server’s machine and port. The client also needs to identify
itself to the server so it binds to a local port number that it will use during
this connection. This usually assigned by the system.
No comments:
Post a Comment