|
barchart-udt-core 2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TypeUDT>
com.barchart.udt.TypeUDT
public 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 |
|---|
public static final TypeUDT STREAM
public static final TypeUDT DATAGRAM
| Field Detail |
|---|
protected final int code
| Method Detail |
|---|
public static TypeUDT[] values()
for (TypeUDT c : TypeUDT.values()) System.out.println(c);
public static TypeUDT valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int code()
|
barchart-udt-core 2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||