s***@gmail.com
2007-01-31 17:35:40 UTC
I want to change the IPV6_V6ONLY option for a UDP socket, but when I
call setsockopt with that option, it always returns WSAEINVAL. I can
call getsockopt with that option and it returns success and fills in a
1 (option is on). I tried passing it an int and a char (since
getsockopt only seems to fill in the lower 8 bits) and both fail.
Does IPV6_V6ONLY not work for UDP sockets or there something special I
need to do?
call setsockopt with that option, it always returns WSAEINVAL. I can
call getsockopt with that option and it returns success and fills in a
1 (option is on). I tried passing it an int and a char (since
getsockopt only seems to fill in the lower 8 bits) and both fail.
Does IPV6_V6ONLY not work for UDP sockets or there something special I
need to do?