Q. what is the difference between socket & port ?

Answer Posted / guest

Port : Port no is the s/w address on a computer on the n/w.
for instance smtp : 25 and pop : 109 and so on....
Socket : Socket is the communication path to a port.
Basically Socket = ip + port, so Socket provides the access
to the ip+port

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do udp sockets work?

491


How to Write a UDP Datagram Server?

947


How to Specify the Domain of a Socket?

1049


How does socket communication work?

490


What are the best linux system programming interview questions you've ever asked or been asked?

456






How to Test with Other IP Numbers?

1076


What is socket abstraction?

488


What is AF_UNSPEC Address?

1803


What is the use of inet_network()?

998


How to Deal with Duplicated Sockets?

1162


What are Nameless Sockets?

1053


How to use the PF_LOCAL and AF_LOCAL Macros?

1072


How to Generate Addresses?

980


How to Perform Input/Output of Datagrams?

948


What is the use of PF_INET and SOCK_STREAM?

1000