c++ - setsockopt returning error 10014 - Stack Overflow
10014 is WSAEFAULT, which means "The buffer pointed to by the optval parameter is not in a valid part of the process address space or the optlen parameter is too small." Read the documentation: IPPROTO_IP Socket Options IP_ADD_SOURCE_MEMBERSHIP expects a ...