Skip to main content

Available SocketOptions on ServerSocket instances.

1 reply [Last post]
zappen
Offline
Joined: 2006-03-10

Hi!

Looking at the code I can't figure out why on earth it isn't allowed to set for instance the TOS socket option on a ServerSocket. A setTrafficClass(int class) on the ServerSocket wouldn't be rocket science to implement on the existing code. However it is quite a bit of work to subclass SocketImpl and do all the native stuff just to get this option set on the serversocket.

Since ServerSocket doesn't inherit from a Socket nor implements the SocketOptions interface it is impossible to set other options on the ServerSocket. One can certainly wonder why this restriction has been implemented and more importantly how can it be solved? I.e. is there a feasable solution to this problem that doesn't involve implement the entire stack by my self.

Z

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vali_nedelcu
Offline
Joined: 2006-02-02

> I.e. is there a feasable solution to this
> problem that doesn't involve implement the entire
> stack by my self.
>
> Z
Dunno. But...what are you trying to achieve?!