Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setting socket traffic class option on linux  RSS feed

Edo Dovrat
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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!