wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes setting socket traffic class option on linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "setting socket traffic class option on linux" Watch "setting socket traffic class option on linux" New topic

setting socket traffic class option on linux

Edo Dovrat

Joined: Jun 02, 2008
Posts: 3
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?

I agree. Here's the link: http://aspose.com/file-tools
subject: setting socket traffic class option on linux
Similar Threads
Need a simple Java LDAP client
Problem connecting to "localhost"
Setting proxy authenication in java socket
How to find a port is free or not without catching any Exception ?
HttpServer connection refused?