Java Question
Paul Osman
paul-trWFDORQd8hBDgjK7y7TUQ at public.gmane.org
Thu Apr 6 10:57:17 UTC 2006
On 6-Apr-06, at 1:19 AM, Randy Jonasz wrote:
> Anyone know if Java supports the select function that C has? i.e. use
> FD_SET etc to wait on an array of file descriptors for
> read,write,exception events.
>
> Cheers,
>
> Randy
Hi Randy,
Java doesn't have a select() function per say, but afaik you can use
the java.nio.channels.Selector class to do I/O multiplexing. Here's a
link:
http://www.onjava.com/pub/a/onjava/2004/09/01/nio.html
Cheers,
Paul
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list