public enum NetProtocol extends java.lang.Enum<NetProtocol>
Enum Constant and Description |
---|
epgm |
inproc |
ipc |
norm |
pgm |
tcp |
tipc |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.Integer> |
compatibles |
boolean |
isMulticast |
boolean |
subscribe2all |
boolean |
valid |
Modifier and Type | Method and Description |
---|---|
boolean |
compatible(int type) |
Listener |
getListener(IOThread ioThread,
SocketBase socket,
Options options) |
static NetProtocol |
getProtocol(java.lang.String protocol) |
void |
resolve(Address paddr,
boolean ipv6) |
static NetProtocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Address.IZAddress |
zresolve(java.lang.String addr,
boolean ipv6) |
public static final NetProtocol inproc
public static final NetProtocol ipc
public static final NetProtocol tcp
public static final NetProtocol pgm
public static final NetProtocol epgm
public static final NetProtocol tipc
public static final NetProtocol norm
public final boolean valid
public final boolean subscribe2all
public final boolean isMulticast
private java.util.Set<java.lang.Integer> compatibles
public static NetProtocol[] values()
for (NetProtocol c : NetProtocol.values()) System.out.println(c);
public static NetProtocol 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 nullpublic static NetProtocol getProtocol(java.lang.String protocol)
protocol
- namejava.lang.IllegalArgumentException
- if the protocol name can be matched to an actual supported protocolpublic final boolean compatible(int type)
public Listener getListener(IOThread ioThread, SocketBase socket, Options options)
public void resolve(Address paddr, boolean ipv6)
public Address.IZAddress zresolve(java.lang.String addr, boolean ipv6)