A question of socket programming

Discussion in 'C++' started by fankaiz@gmail.com, Jun 1, 2007.

  1. Guest

    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~
    , Jun 1, 2007
    #1
    1. Advertising

  2. 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
    Victor Bazarov, Jun 1, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Laszlo Nagy
    Replies:
    1
    Views:
    4,761
    Mark Wooding
    Jan 27, 2009
  2. Jean-Paul Calderone
    Replies:
    0
    Views:
    944
    Jean-Paul Calderone
    Jan 27, 2009
  3. Laszlo Nagy
    Replies:
    0
    Views:
    525
    Laszlo Nagy
    Feb 1, 2009
  4. Steve Holden
    Replies:
    0
    Views:
    644
    Steve Holden
    Feb 1, 2009
  5. Steve Holden
    Replies:
    1
    Views:
    698
Loading...

Share This Page