Package com.quanser.communications
Class QuanserStream.PollFlag
java.lang.Object
com.quanser.communications.QuanserStream.PollFlag
- Enclosing class:
- QuanserStream
Defines the flags used by the
poll
method.
The poll
method waits for events to occur on the communication channel. The flags
in the PollFlag
class may be combined using a logical-OR to wait for multiple events.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Not valid on a client stream.static final int
Not valid on a listening stream.static final int
Not valid on a listening stream.static final int
On a listening stream, check for connections pending from clients.static final int
Not valid on a listening stream. -
Constructor Summary
-
Method Summary
-
Field Details
-
receive
public static final int receiveOn a listening stream, check for connections pending from clients. On a client stream, check whether there is any data available to receive.- See Also:
-
send
public static final int sendNot valid on a listening stream. On a client stream, check whether there is space in the stream buffer to store any data.nections pending from clients. On a client stream, check whether there is any data available to receive.- See Also:
-
accept
public static final int acceptNot valid on a client stream. On a listening stream, check whether there is a pending client connection.- See Also:
-
connect
public static final int connectNot valid on a listening stream. On a client stream, check whether the connection has completed.- See Also:
-
flush
public static final int flushNot valid on a listening stream. On a client stream, check whether it is possible to flush any more data without blocking.- See Also:
-
-
Constructor Details
-
PollFlag
public PollFlag()
-