Q. what is the difference between socket & port ?
Answer Posted / srinivas antarvedi
port : a particular port number on a host
socket: a host and a port
like
-> http port = 80
-> when you fire up google.com
the socket on the server side is google.com:80 this is the server side socket
on your local system where you are browsing the socket is
yourip:port above 1024
| Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
How to Specify the Domain of a Socket?
How to Perform Input/Output of Datagrams?
What is the use of recvfrom(2) Function?
How to test socket connection in linux?
How to Bind a Specific Interface Address?
How to Form Traditional Local Addresses?
What are Anonymous Calls?
How to Write a UDP Datagram Server?
Can you send and receive on the same socket at the same time?
Are sockets full duplex?
How to Choose a Socket Type?
What is socket file in linux?
What is the Use of the inet_makeaddr() Function?
How to look up a Service by Port and Protocol?
What is the use of inet_network()?