The following setsockopt() command fails with error 10022 ( invalid option) using CE 5.0, but works fine on my desktop (XP). sockDesc was checked for validity.
void UDPSocket::disableCheckSum() {
BOOL bOptVal = TRUE;
int bOptLen = sizeof(BOOL);
int err;
int ret;
ret = setsockopt(sockDesc, IPPROTO_UDP,
UDP_NOCHECKSUM,(char *)&bOptVal,bOptLen);
cout << "ret = " << ret << endl;
err = WSAGetLastError();
cout << "disable cs " << err << endl;
}
It seems like this option is not supported under CE 5.0 ?
void UDPSocket::disableCheckSum() {
BOOL bOptVal = TRUE;
int bOptLen = sizeof(BOOL);
int err;
int ret;
ret = setsockopt(sockDesc, IPPROTO_UDP,
UDP_NOCHECKSUM,(char *)&bOptVal,bOptLen);
cout << "ret = " << ret << endl;
err = WSAGetLastError();
cout << "disable cs " << err << endl;
}
It seems like this option is not supported under CE 5.0 ?