[2455] in java-interest

home help back first fref pref prev next nref lref last post

Ugh. These Sockets...

daemon@ATHENA.MIT.EDU (Paul M. Tyma)
Mon Oct 2 22:58:19 1995

Date: Mon, 2 Oct 1995 20:54:54 -0400 (EDT)
From: "Paul M. Tyma" <pmtyma@mailbox.syr.edu>
To: java-interest@java.sun.com


 The JDK's implementation for socket usage certainly is built to confuse. 
I don't have too much problem with the SocketImpl or SocketImplFactory
ideas (someone been reading Design Patterns?), but given that I am to
subclass the abstract SocketImpl, I'm a bit taken back. First off,
that is quite a big class to say, 'oh btw, implement ALL these methods'.
Whilst looking for some semblence of an example I run across 
PlainSocketImpl.java in the source lib. Yeah! a subclass example!
Boo! Half the important methods are native?! Can't this magic be done in
Java?

So, just for yuks, lets say I wanted to per se 'use' this socket class.
I am quite willing to put in the work to subclass the SocketImpl class.
How the heck do I this? (Please no one say go use sun.net.NetworkServer, etc.
yes I know thats an easy way out but it would seem the official API should
be usable too)

Any help, CODE, suggestions, CODE, comments, or CODE would be appreciated.

cheers,
Paul

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post