[2475] in java-interest
Re: polling connections
daemon@ATHENA.MIT.EDU (Michael Lorton)
Tue Oct 3 01:55:55 1995
Date: Mon, 2 Oct 1995 10:10:41 -0700
From: Michael Lorton <mlorton@eshop.com>
To: larryr@CyberGate.COM
Cc: java-interest@java.sun.com
In-Reply-To: <Pine.SV4.3.91.950929153114.9238B-100000@emerald> (message from Larry Reu on Fri, 29 Sep 1995 15:43:28 -0700 (PDT))
> 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 would say, do a read on each socket in a separate thread. select()
and poll() compensate for a lacking of threading in most languages.
M.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com