LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2004, 06:15 AM   #1
rasanth
LQ Newbie
 
Registered: Sep 2004
Location: Bangalore
Posts: 7

Rep: Reputation: 0
port number from sockfd


Hi All,
in my server, I have a sockfd , is there anyway to find out ,to which port the client has connected , using this sockfd?

Thanks in Advance,
Rasanth
 
Old 09-09-2004, 06:59 AM   #2
mhearn
LQ Guru
 
Registered: Nov 2002
Location: Durham, England
Distribution: Fedora Core 4
Posts: 1,565

Rep: Reputation: 47
Whichever port the socket is bound to of course (ie whichever it's listening on).
 
Old 09-09-2004, 07:04 AM   #3
rasanth
LQ Newbie
 
Registered: Sep 2004
Location: Bangalore
Posts: 7

Original Poster
Rep: Reputation: 0
I just have the sockfd. I have to do some processing on a different thread which knows only the sockfd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
port number. bruse Linux - Networking 1 11-28-2005 03:13 PM
Port number.... help rajsun Programming 2 04-12-2005 10:20 AM
Port Number? Dakkar Linux - Newbie 5 11-06-2004 06:50 PM
Ip and port number Alien18 Linux - Networking 1 09-13-2004 10:40 PM
right port number gogo Linux - General 1 05-07-2001 04:52 PM


All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration