Enum Class TypeUDT

java.lang.Object
java.lang.Enum<TypeUDT>
com.barchart.udt.TypeUDT
All Implemented Interfaces:
Serializable, Comparable<TypeUDT>, Constable

public enum TypeUDT extends Enum<TypeUDT>
UDT socket mode type. NOTE: TypeUDT(int) means stream vs datagram; KindUDT means server vs client.

maps to socket.h constants
SOCK_STREAM = 1
SOCK_DGRAM = 2

  • Enum Constant Details

    • STREAM

      public static final TypeUDT STREAM
      The STREAM type. Defines "byte stream" UDT mode.
    • DATAGRAM

      public static final TypeUDT DATAGRAM
      The DATAGRAM. Defines "datagram or message" UDT mode.
  • Field Details

    • code

      protected final int code
  • Constructor Details

    • TypeUDT

      private TypeUDT(int code)
      Parameters:
      code - native UDT constant
  • Method Details

    • values

      public static TypeUDT[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TypeUDT valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • code

      public int code()
      native UDT constant