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
How do udp sockets work?
How to Write a UDP Datagram Server?
How to Specify the Domain of a Socket?
How does socket communication work?
What are the best linux system programming interview questions you've ever asked or been asked?
How to Test with Other IP Numbers?
What is socket abstraction?
What is AF_UNSPEC Address?
What is the use of inet_network()?
How to Deal with Duplicated Sockets?
What are Nameless Sockets?
How to use the PF_LOCAL and AF_LOCAL Macros?
How to Generate Addresses?
How to Perform Input/Output of Datagrams?
What is the use of PF_INET and SOCK_STREAM?