Raw Socket support in Java

Status
You're currently viewing only langri's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

langri

Ars Tribunus Militum
1,792
Originally posted by newton_meter:
Quote: "Originally posted by langri:
Are any of you aware of Raw Socket support in Java, and if so, have you made use of it?"

It was talked about as a feature of "Merlin" (the code name for 1.4), and was in Sun's hype before the first 1.4 beta came out (I remember reading about it within the last year, probably about 10 months ago). But, as you noticed :( it's not in 1.4.

The current story is that it's being "considered" for "Tiger" (the code name for 1.5). Since the 1.4 release candidate just came out, 1.5 is a ways off. If you've got access to the developer connection, you should read bug ID 4093850.

The best workaround I can think of is to implement your own RawSocketImpl (native) class. That should be generally useful, maybe I'll do it someday.

The problems (for Sun) are: a) not every OS has raw socket support, b) Unices require root priveleges to use raw sockets, which requires the JVM to run as root, which is a security problem since the JVM can execute native code.

The problems (for you) are: the workaround breaks "write once-run anywhere".

(kg*m*m)/(s*s)

Well I'll be darned, it appears that you were the one that told me about it.
 
Status
You're currently viewing only langri's posts. Click here to go back to viewing the entire thread.
Not open for further replies.