I am receiving error code 67 from the code below, which means ERROR_BAD_NET_NAME.
Why is it happening? How can I fix it?
SOCKADDR address;
strcpy_s(address.sa_data, "8.8.8.8");
address.sa_family = AF_INET;
if (!QOSStartTrackingClient(QoSHandle, &address, 0))
cout << GetLastError();
you initialize
SOCKADDRwrong :strcpy_s(address.sa_data, "8.8.8.8");- this is mistake.really
SOCKADDRis only place holderand from here
in your case you need use
SOCKADDR_IN