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. Advertisements

  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. Advertisements

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. Matt Gessner
    Replies:
    1
    Views:
    1,563
  2. Justin Robbs

    C Socket programming question

    Justin Robbs, Nov 12, 2003, in forum: C Programming
    Replies:
    25
    Views:
    896
    Richard Heathfield
    Nov 15, 2003
  3. xunil

    socket programming question

    xunil, May 20, 2004, in forum: Python
    Replies:
    1
    Views:
    328
    Peter Hansen
    May 20, 2004
  4. Replies:
    6
    Views:
    382
    Grant Edwards
    Feb 11, 2006
  5. Kiran

    socket programming question

    Kiran, Jun 20, 2006, in forum: Python
    Replies:
    2
    Views:
    275
    Grant Edwards
    Jun 20, 2006
  6. ferbar
    Replies:
    3
    Views:
    843
    Dave Thompson
    Jun 27, 2005
  7. Laszlo Nagy
    Replies:
    1
    Views:
    7,117
    Mark Wooding
    Jan 27, 2009
  8. Steve Holden
    Replies:
    1
    Views:
    986
Loading...