January 20th, 2011, 10:35 AM
I wanted to add multiple options with setsocketopt but if would it overwrite the previous option if I do something like this?
setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &btr, sizeof(btr));
setsockopt(sock, SOL_SOCKET, SO_RCVBUF , &buflen, sizeof(buflen));
January 21st, 2011, 08:07 AM
NO, that's why you explicitly name the option you want to modify
January 22nd, 2011, 11:36 AM
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.