aspose file tools
The moose likes Java in General and the fly likes A Java method equivalent to the C select() function Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "A Java method equivalent to the C select() function" Watch "A Java method equivalent to the C select() function" New topic
Author

A Java method equivalent to the C select() function

Bug Menot
Greenhorn

Joined: Oct 15, 2004
Posts: 26
Is there a Java method (or a class) that offers the same functionality as that of C's select()? e.g. Wait for input from two or more input streams or sockets at the same time (in my case, an InputStream and a DatagramSocket), and as soon as there is an input from either the streams or sockets the program continues on to process the input. (Also a timer can be associated with the wait, so if the wait times out, I can choose to react to the timeout.)
Thanks for the help.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: A Java method equivalent to the C select() function
 
Similar Threads
how to download files using JSP\java
sending objects over a connection.
Runtime.exec()
Channels & Selectors ??
chat