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

What are Anonymous Calls?

995


How TCP/IP Handles Sequencing?

1155


What are Reserved IP Numbers?

1004


What is the Use of the inet_netof() Function?

907


How to Perform Input/Output of Datagrams?

948






How to Form Traditional Local Addresses?

964


How to Bind Addresses to a Socket?

919


How to Test with No Server?

1099


What is the use of endservent(3) Function?

1180


How to Form Abstract Local Addresses?

994


How to Deal with Duplicated Sockets?

1162


How to Initialize a Wild Internet Address?

1041


How to Perform Endian Conversions?

962


How to Write a UDP Datagram Client?

954


What is the use of inet_addr() Function?

986