Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-09-2004, 05:15 AM   #1
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,
Old 09-09-2004, 05:59 AM   #2
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, 06:04 AM   #3
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.


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 02:13 PM
Port number.... help rajsun Programming 2 04-12-2005 09:20 AM
Port Number? Dakkar Linux - Newbie 5 11-06-2004 05:50 PM
Ip and port number Alien18 Linux - Networking 1 09-13-2004 09:40 PM
right port number gogo Linux - General 1 05-07-2001 03:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 PM.

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