seda.nbio.Selectable Interface Reference

Inherited by seda.nbio.NonblockingDatagramSocket, seda.nbio.NonblockingServerSocket, and seda.nbio.NonblockingSocket.

List of all members.


Detailed Description

Selectable is an interface which represents an object (such as a socket or file descriptor) which may be used with the SelectItem and SelectSet classes.

It defines no methods.

The static final fields of this interface specify the event types that may be used with SelectItem and SelectSet.


Static Public Attributes

static final short READ_READY = (short)0x01
 Event mask specifying that data can be read without blocking.
static final short WRITE_READY = (short)0x02
 Event mask specifying that data can be written without blocking.
static final short ACCEPT_READY = READ_READY
 Event mask specifying that a new incoming connection is pending.
static final short CONNECT_READY = WRITE_READY
 Event mask specifying that a pending outgoing connection has been established.
static final short SELECT_ERROR = (short)0x80
 Specifies that an error has occured on this SelectItem.


Member Data Documentation

final short seda.nbio.Selectable.ACCEPT_READY = READ_READY [static]
 

Event mask specifying that a new incoming connection is pending.

final short seda.nbio.Selectable.CONNECT_READY = WRITE_READY [static]
 

Event mask specifying that a pending outgoing connection has been established.

final short seda.nbio.Selectable.READ_READY = (short)0x01 [static]
 

Event mask specifying that data can be read without blocking.

final short seda.nbio.Selectable.SELECT_ERROR = (short)0x80 [static]
 

Specifies that an error has occured on this SelectItem.

Invoking the requested read, write, connect, etc. operation will throw the appropriate exception. Only valid for revents.

final short seda.nbio.Selectable.WRITE_READY = (short)0x02 [static]
 

Event mask specifying that data can be written without blocking.


The documentation for this interface was generated from the following file:
Generated on Tue Jun 20 14:37:50 2006 for libnbio2-java by  doxygen 1.4.6