UNIX select() equivalent in Java for polling multiple sockets - Java

This is a discussion on UNIX select() equivalent in Java for polling multiple sockets - Java ; Hi All, I am struggling to find any information on how Java can be made to poll multiple sockets in a single thread. In variants of UNIX this is simply done via the select() call. Can anyone provide any links ...

+ Reply to Thread
Results 1 to 2 of 2

UNIX select() equivalent in Java for polling multiple sockets

  1. Default UNIX select() equivalent in Java for polling multiple sockets

    Hi All,

    I am struggling to find any information on how Java can be made to
    poll multiple sockets in a single thread. In variants of UNIX this is
    simply done via the select() call.

    Can anyone provide any links to tutorials/information explaining how
    this is done? I did come across information on the SocketChannel &
    Selector classes somewhere, but unfortunately I lost the link I do
    remember there was something particular about version 1.4 &
    onwards....

    Thanks all


  2. Default Re: UNIX select() equivalent in Java for polling multiple sockets

    captain_oldfield wrote:
    >
    > I am struggling to find any information on how Java can be made to
    > poll multiple sockets in a single thread. In variants of UNIX this is
    > simply done via the select() call.
    >
    > Can anyone provide any links to tutorials/information explaining how
    > this is done? I did come across information on the SocketChannel &
    > Selector classes somewhere, but unfortunately I lost the link I do
    > remember there was something particular about version 1.4 &
    > onwards....


    They keyword is nio.

    There are lots of hits on Google. Including:

    http://www.owlmountain.com/tutorials/NonBlockingIo.htm
    http://rox-xmlrpc.sourceforge.net/niotut/index.html
    http://java.sun.com/j2se/1.5.0/docs/...ple/index.html
    http://www.ibm.com/developerworks/ja...rary/j-javaio/

    Arne

+ Reply to Thread

Similar Threads

  1. Multiple GPIB SRQ polling
    By Application Development in forum labview
    Replies: 2
    Last Post: 10-30-2007, 11:40 AM
  2. Re: Threads, signals and sockets (on UNIX)
    By Application Development in forum Python
    Replies: 0
    Last Post: 06-11-2007, 07:09 AM
  3. Replies: 3
    Last Post: 04-18-2005, 01:25 PM
  4. Are Unix Domain sockets supported?
    By Application Development in forum Java
    Replies: 0
    Last Post: 03-29-2005, 04:35 PM
  5. UNIX Domain Sockets
    By Application Development in forum Perl
    Replies: 1
    Last Post: 08-18-2003, 11:51 AM