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
What is Internet Address Classes?
How to test socket connection in linux?
What is the use of PF_INET and SOCK_STREAM?
How does socket communication work?
How to read socket file in linux?
What is the use getservent(3)?
How to Form Internet (IPv4) Socket Addresses?
Are sockets bidirectional?
How socket is created?
How to use the PF_LOCAL and AF_LOCAL Macros?
What is the use of setprotoent(3) Function?
What is the use of inet_aton() Function?
HOW TCP/IP Handles Duplicated Packets?
What is the use of SOCK_STREAM Socket Type?
Are udp sockets bidirectional?