Answer Posted / chaitanya
The list of registered port assignments can be found in STD 2 or RFC 1700. Choose one that isn't already registered, and isn't in /etc/services on your system. It is also a good idea to let users customize the port number in case of conflicts with other un- registered port numbers in other servers. The best way of doing this is hardcoding a service name, and using getservbyname() to lookup the actual port number. This method allows users to change the port your server binds to by simply editing the /etc/services file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between socket () and serversocket () class?
How many socket connections can a server handle?
What is a socket file?
Why do we need socket programming?
Are unix sockets faster than tcp?
How do unix sockets work?
How can I force a socket to send the data in its buffer?
Where is the socket located?
Is socket a hardware or software?
How to find other end of unix socket connection?
What is a socket api?
What exactly is a socket?
What is the difference between read() and recv()?
What is a sae socket?
What is difference between socket and websocket?