Class QuanserStream.PollFlag

java.lang.Object
com.quanser.communications.QuanserStream.PollFlag
Enclosing class:
QuanserStream

public static class QuanserStream.PollFlag extends Object
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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • receive

      public static final int receive
      On 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 send
      Not 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 accept
      Not valid on a client stream. On a listening stream, check whether there is a pending client connection.
      See Also:
    • connect

      public static final int connect
      Not valid on a listening stream. On a client stream, check whether the connection has completed.
      See Also:
    • flush

      public static final int flush
      Not 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()