public static enum DOFServer.Type extends java.lang.Enum<DOFServer.Type>
DOFConnection.Type
values for instructions to properly create the special connection types
that have connections related to servers.
Also, see the various custom builders for DOFServer.Config
that simplify Config building.Enum Constant and Description |
---|
DATAGRAM
Datagram servers can be used both to accept unsecured datagrams and
as the basis for creating secure multicast groups and hubs.
|
STREAM
Stream servers create stream connections.
|
Modifier and Type | Method and Description |
---|---|
static DOFServer.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DOFServer.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DOFServer.Type STREAM
public static final DOFServer.Type DATAGRAM
public static DOFServer.Type[] values()
for (DOFServer.Type c : DOFServer.Type.values()) System.out.println(c);
public static DOFServer.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null