barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

com.barchart.udt
Enum TypeUDT

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

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 Summary
DATAGRAM
          The DATAGRAM.
STREAM
          The STREAM type.
 
Field Summary
protected  int code
           
 
Method Summary
 int code()
          native UDT constant
static TypeUDT valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TypeUDT[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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 Detail

code

protected final int code
Method Detail

values

public static TypeUDT[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TypeUDT c : TypeUDT.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TypeUDT valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

code

public int code()
native UDT constant


barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

Copyright © 2009-2013 Barchart, Inc.. All Rights Reserved.