ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
   
 
Categories  >>  Software  >>  Operating Systems  >>  Linux  >>  Linux Socket Programming
 
 


 

 
 Linux Commands interview questions  Linux Commands Interview Questions
 Linux Threads interview questions  Linux Threads Interview Questions
 Linux IPC interview questions  Linux IPC Interview Questions
 Linux Socket Programming interview questions  Linux Socket Programming Interview Questions
 Linux System Calls interview questions  Linux System Calls Interview Questions
 Linux General interview questions  Linux General Interview Questions
 Linux AllOther interview questions  Linux AllOther Interview Questions
Question
Q. what is the difference between socket & port ?
 Question Submitted By :: Sumeet4interview
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Q. what is the difference between socket & port ?
Answer
# 1
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 ?    12 Yes 1 No
Srinivas Antarvedi
 
  Re: Q. what is the difference between socket & port ?
Answer
# 2
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 ?    7 Yes 0 No
Guest
 
 
 

 
 
 
Other Linux Socket Programming Interview Questions
 
  Question Asked @ Answers
 
Why bind system call is required in socket programming ? what is it;s Significance ? Cavium-Networks3
Q. what is the difference between socket & port ? Cavium-Networks2
What is the difference between a process task and threads and what are the things that are acquired by the child process from the parent process  5
how to get client port number in server socket programming??  5
what is the difference between fork() & exec() Subex9
 
For more Linux Socket Programming Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com