[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ajug-members]: select implementation in Java
- To: ajug-members@ajug.org
- Subject: [ajug-members]: select implementation in Java
- From: "John D. Mitchell" <johnm-advanced-java@non.net>
- Date: Mon, 24 May 2004 11:55:13 -0700
- In-Reply-To: <1085418222.4953.179.camel@linux.site>
- References: <1085418222.4953.179.camel@linux.site>
>>>>> "Christopher" == Christopher Fowler <cfowler@outpostsentinel.com> writes:
> I've not used select in java yet but the proxy I'm working on will
> require it. Does java/IO do a good job at select? Would it be better to
> write a JNI library that accepts the two file descriptors and does the
> select in C?
The basic, "stream" I/O in Java is blocking I/O.
For non-blocking, I suggest starting out with the java.nio stuff. Use the
latest Java v1.4.x stuff as its less buggy.
If you don't like that for some reason, I'd checkout what e.g., the Resin
servlet engine folks did via JNI.
Have fun,
John