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


Please Help Members By Posting Answers For Below Questions

How to Test the Datagram Client and Server?

976


HOW TCP/IP Handles Duplicated Packets?

1236


Are sockets bidirectional?

435


What is the setservent(3) Function?

1158


What does socket consist of?

464






How to Bind a Specific Interface Address?

994


What is the use of SOCK_DGRAM Socket Type?

1002


Are udp sockets bidirectional?

486


What is the use of PF_INET and SOCK_DGRAM?

1074


How to Examin the /etc/services File?

1194


How to Perform Input/Output of Datagrams?

948


how to get client port number in server socket programming??

1967


How to use the PF_LOCAL and AF_LOCAL Macros?

1073


How TCP/IP Handles Sequencing?

1155


How to Test with No Server?

1101