Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Q. what is the difference between socket & port ?

Answers were Sorted based on User's Feedback



Q. what is the difference between socket & port ?..

Answer / 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

Q. what is the difference between socket & port ?..

Answer / 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

More Linux Socket Programming Interview Questions

How to Write a UDP Datagram Client?

0 Answers  


How to use the PF_LOCAL and AF_LOCAL Macros?

0 Answers  


How to Bind a Specific Interface Address?

0 Answers  


Are sockets bidirectional?

0 Answers  


Why bind system call is required in socket programming?

0 Answers  


What is the Use of the inet_netof() Function?

0 Answers  


HOW TCP/IP Handles Duplicated Packets?

0 Answers  


What are Reserved IP Numbers?

0 Answers  


What is the use of PF_INET and SOCK_STREAM?

0 Answers  


Can a socket have multiple connections?

0 Answers  


What is the use of PF_INET or AF_INET?

0 Answers  


What is socket abstraction?

0 Answers  


Categories