Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > A question of socket programming

Reply
Thread Tools

A question of socket programming

 
 
fankaiz@gmail.com
Guest
Posts: n/a
 
      06-01-2007
I'm programming socket in Linux enviromnet.

In the server side, when I want to bind a socket with any available
port(by set sin_port to 0), I want to know how can I get to know which
port is exactly used?

Thanks~

 
Reply With Quote
 
 
 
 
Victor Bazarov
Guest
Posts: n/a
 
      06-01-2007
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> I'm programming socket in Linux enviromnet.
>
> In the server side, when I want to bind a socket with any available
> port(by set sin_port to 0), I want to know how can I get to know which
> port is exactly used?


I believe the newsgroup you were looking for actually belongs to the
'comp.os.linux.development.*' family.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Steve Holden Python 1 02-03-2009 06:20 AM
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Steve Holden Python 0 02-01-2009 12:45 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 0 02-01-2009 07:37 AM
socket.unbind or socket.unlisten? - socket.error: (48, 'Addressalready in use') Laszlo Nagy Python 1 01-27-2009 05:05 PM
Re: socket.unbind or socket.unlisten? - socket.error: (48,'Address already in use') Jean-Paul Calderone Python 0 01-27-2009 01:41 PM



Advertisments