CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: setsocketopt

  1. #1
    Join Date
    Oct 2010
    Posts
    67

    setsocketopt

    I wanted to add multiple options with setsocketopt but if would it overwrite the previous option if I do something like this?
    Code:
    setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &btr, sizeof(btr));
    setsockopt(sock, SOL_SOCKET, SO_RCVBUF , &buflen, sizeof(buflen));
    Thanks

  2. #2
    Join Date
    May 2001
    Location
    Germany
    Posts
    1,158

    Re: setsocketopt

    NO, that's why you explicitly name the option you want to modify

  3. #3
    Join Date
    Oct 2010
    Posts
    67

    Re: setsocketopt

    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured