Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 16th, 2003, 08:34 PM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default TypeOfService

Hi,
I'm trying to get the UDP TypeOfService. I get all other option correct, but the TOS keeps on 0 even when it's not...
My code in C++:

 *__try_cast<__box int*>this->Client->GetSocketOption(SocketOptionLevel::IP, SocketOptionName::TypeOfService);
Anyone tried it
Thanx
Shlomo

 
Old October 16th, 2003, 08:39 PM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, in C# it is:
Client.GetSocketOption(SocketOptionLevel.IP, SocketOptionName.TypeOfService);And the result should be custted to int.
Shlomo











Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.