On 08/20/2008 04:37 AM, Alan Bateman wrote:
Florian Weimer wrote:
:
I've been wondering for a while if it is possible (with reasonable
additional effort) to add new socket and socket address classes without
patching the JDK sources.
No, it's not. :-)
FWIW, a while back I prototyped an "in tree" solution for SocketChannel.
The primary motive was to allow for Sockets Direct Protocol (which uses
IP addressing) and Unix Domain Sockets (which required a new
SocketAddress type).
I disagree here. Just because C has traditionally used struct sockaddr in
an overloaded fashion doesn't mean it's a good idea to mirror this on the
Java side.
- DML