Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows CE 5.0 UDP_NOCHECKSUM fails

Status
Not open for further replies.

chip61

Programmer
Jul 10, 2008
1
0
0
US
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 ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top