UdpClient TypeOfService

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ShOv

    UdpClient TypeOfService

    Hi
    Has anybody received the proper TOS in UDP? I get 0!

    I go
    *__try_cast<__b ox int*>(this->Client->GetSocketOptio n
    (SocketOptionLe vel::IP, SocketOptionNam e::TypeOfServic e));

    or the equv. in C#.

    Thanks
    ShOv
  • Rich Blum

    #2
    Re: UdpClient TypeOfService

    "ShOv" <anonymous@disc ussions.microso ft.com> wrote in message news:<049301c39 43c$f99c8940$a4 01280a@phx.gbl> ...[color=blue]
    > Hi
    > Has anybody received the proper TOS in UDP? I get 0!
    >
    > I go
    > *__try_cast<__b ox int*>(this->Client->GetSocketOptio n
    > (SocketOptionLe vel::IP, SocketOptionNam e::TypeOfServic e));
    >
    > or the equv. in C#.
    >[/color]
    ShOv -

    It depends on which OS your app is running on. KB article Q248611
    states that TOS was not supported on Windows 9x and NT machines (even
    though the setsockopt() method returns 0). TOS is supported on 2000
    (and XP) machines only after adding a Registry value; defined in the
    KB article:

    key: HKLM\System\Cur rentControlSet\ Services\Tcp\Pa rameters
    value: DisableUserTOSS etting (REG_DWORD) = 0

    I followed the directions and was able to successfully change the
    TOS setting on a socket and send high priority packets. Hope this
    helps solve your problem.

    Rich Blum - Author
    "C# Network Programming" (Sybex)

    "Network Performance Open Source Toolkit" (Wiley)

    Comment

    Working...