[2365] in java-interest

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

polling connections

daemon@ATHENA.MIT.EDU (Larry Reu)
Fri Sep 29 21:13:25 1995

Date: Fri, 29 Sep 1995 15:43:28 -0700 (PDT)
From: Larry Reu <larryr@CyberGate.COM>
To: java-interest@java.sun.com

Is there any way to "poll" a series of connections in Java. In UNIX
I can have a set of open sockets and use poll() on the set of file
descriptors to wait for a connection which has data to read.

I need to do something similar within Java.  I don't see a way to
get the underlying fd (UNIX file-descriptor) from the java.net.Socket
class.  Is there a way to do this with the existing classes or do 
I need to implement my own (using native methods) ?

FYI:
This will be an internal tool on Solaris and I'm currently using 
the preBeta1 tools.  Experience has taught us that for the large
number of connections we use the Solaris thread package was
not up to using a thread per connection thus we switched to a 
polling method.  So without testing I'm working under the assumption 
that the Java threads will also not perform well thus the need for 
setting up a thread (or set of) which will poll a set of connections.

........thanks......larry
-
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