Setting TypeOfService field in IP header

Setting TypeOfService field in IP header

Post by cmlzaGl » Sun, 06 Mar 2005 21:01:01


Hi,

I am trying to set TypeOfService field using 'SetSocketOption( )' in
managed C++ as follows:

m_pSocket->SetSocketOption
(SocketOptionLevel::IP,SocketOptionName::TypeOfService,92);

m_pSocket is an UDP socket. .... I do not get any exception, however, the
TypeOfService bits in IP header of packet remain 0. .... I am running program
on XP......

regards,
rishim