855 views

1 Answer

1 votes
1 votes
Client simply needs to communicate with some process on the server. Since processes on the server should be attached to fixed ports so that they can be contacted by the client, they require bind function to assign them ports. This way the client knows which port of the process (on the server) to reach out to with which it wants to communicate. The client on the other hand can simply get a temporary port assigned (without the need of bind) and after it has done communicating with some process on the server, the client port is closed. Next time the same port can be given to some other client temporarily.

Related questions

0 votes
0 votes
1 answer
1
Concerned Geek asked Jul 27, 2018
687 views
Is computer sockets in the syllabus for gate 2019? I saw.some questions on it that was asked in previous year papers.
2 votes
2 votes
3 answers
2
atul_21 asked Oct 8, 2017
1,392 views
From where should I study TCP and UDP socket.I am unable to distinguish bind(),connect(),listen() etc . . plz help me . .Can anyone provide me the good source or links fo...