Main Page | Packages | Class Hierarchy | Compound List | File List | Compound Members

nbio.Selectable Interface Reference

Inherited by nbio.NonblockingDatagramSocket, nbio.NonblockingServerSocket, and 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

final short READ_READY = (short)0x01
 Event mask specifying that data can be read without blocking.

final short WRITE_READY = (short)0x02
 Event mask specifying that data can be written without blocking.

final short ACCEPT_READY = READ_READY
 Event mask specifying that a new incoming connection is pending.

final short CONNECT_READY = WRITE_READY
 Event mask specifying that a pending outgoing connection has been established.

final short SELECT_ERROR = (short)0x80
 Specifies that an error has occured on this SelectItem.


Member Data Documentation

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

Event mask specifying that a new incoming connection is pending.

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

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

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

Event mask specifying that data can be read without blocking.

final short 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 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 Fri Jul 18 21:37:52 2003 for libnbio2-java by doxygen 1.3.2