Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

setting socket traffic class option on linux

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple client/server programs that uses simple basic tcp sockets.
I'm trying to set the client socket option traffic class (differentiated services field or DSCP), by doing:
Socket requestSocket = new Socket();
InetSocketAddress addr = new InetSocketAddress(InetAddress.getByName(""), 2004);
//send messages on the socket...

When checking the connection using wireshark, I see that on SunOs I see that this field is set correctly(under the IP section, differentiated services of the packet).
but when I run the same code on Linux I don't see this field set.

Any ideas?

catch it before it slithers away! Oh wait, it's a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic