79089309

Date: 2024-10-15 09:30:52
Score: 2
Natty:
Report link

Final solution to setting the TOS value per socket was to use a raw socket.

I found the winsockdotnetworkprogramming.com guides to be useful. It's worth noting that by using a RawSocket you loose a lot of the quality of life features that udpClient handles for you (e.g. setting the correct source ip and sending out via the correct interface). It also requires the program to be run as Administrator.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: jlwilson