IPV6_V6ONLY and SO_REUSEADDR: why?

Discussion in 'C Programming' started by _mario.lat, Jun 10, 2007.

  1. _mario.lat

    _mario.lat Guest

    Hallo,
    I have a question.
    I use the IPV6_V6ONLY I have to use also SO_REUSEADDR options:
    WHY?!?!

    es.
    s0=socket(AF_INET6,SOCK_STREAM,IPPROTO_TCP);
    on=1; setsockopt=(s0,SOL_SOCKET, SO_REUSEADDR, &on,sizeof(on));

    #ifdef USE_IPV6_V6ONLY
    on=1;
    setsockopt(s0,IPPROTO_IPV6, IPV6_V6ONLY,&on,sizeof(on));
    #endif


    thankyou in advance for your help,
    Mario.
     
    _mario.lat, Jun 10, 2007
    #1
    1. Advertising

  2. In article <>,
    _mario.lat <> wrote:
    >I have a question.
    >I use the IPV6_V6ONLY I have to use also SO_REUSEADDR options:
    >WHY?!?!


    We don't know; that's a question about networking, not about the
    C language.

    If you are using networking on a Unix system, try asking in comp.unix.*
    --
    There are some ideas so wrong that only a very intelligent person
    could believe in them. -- George Orwell
     
    Walter Roberson, Jun 10, 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. =?Utf-8?B?VGltOjouLg==?=

    Why, why, why???

    =?Utf-8?B?VGltOjouLg==?=, Jan 27, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    572
    Juan T. Llibre
    Jan 27, 2005
  2. Horace Nunley

    why why why does function not work

    Horace Nunley, Sep 27, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    461
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Sep 27, 2006
  3. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    909
    Mark Rae
    Dec 21, 2006
  4. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,993
    Smokey Grindel
    Dec 2, 2006
  5. SO_REUSEADDR

    , Jul 2, 2008, in forum: Java
    Replies:
    0
    Views:
    689
Loading...

Share This Page