ajay.lele
August 17th, 2009, 04:29 PM
Hi,
I am porting a network application from Linux to Windows. The app needs to get/set TOS value in IP header and on Linux it uses get/setsockopt() with IP_TOS to request for this info as ancillary data in Send/RecvMsg().
Similar mechanism was supported in Winsock but it appears to have been deprecated (I wrote a small program and confirmed that it dosent work)
http://support.microsoft.com/kb/248611
The above link suggests using GQOS APIs to set the TOS value. But what about getting the value in received packet? Is using raw sockets the only option, or any other way possible?
Thanks in advance
I am porting a network application from Linux to Windows. The app needs to get/set TOS value in IP header and on Linux it uses get/setsockopt() with IP_TOS to request for this info as ancillary data in Send/RecvMsg().
Similar mechanism was supported in Winsock but it appears to have been deprecated (I wrote a small program and confirmed that it dosent work)
http://support.microsoft.com/kb/248611
The above link suggests using GQOS APIs to set the TOS value. But what about getting the value in received packet? Is using raw sockets the only option, or any other way possible?
Thanks in advance