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

  2. 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.*
     
    Walter Roberson, Jun 10, 2007
    #2
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
Loading...