Enum Constant and Description |
---|
CHANNEL |
CLIENT |
DEALER |
DISH |
GATHER |
PAIR |
PEER |
PUB |
PULL |
PUSH |
RADIO |
RAW |
REP |
REQ |
ROUTER |
SCATTER |
SERVER |
STREAM |
SUB |
XPUB |
XSUB |
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
compatible |
Modifier and Type | Method and Description |
---|---|
static boolean |
compatible(int self,
java.lang.String peer) |
(package private) abstract SocketBase |
create(Ctx parent,
int tid,
int sid) |
static SocketBase |
create(int socketType,
Ctx parent,
int tid,
int sid) |
SessionBase |
create(IOThread ioThread,
boolean connect,
SocketBase socket,
Options options,
Address addr) |
static SessionBase |
createSession(IOThread ioThread,
boolean connect,
SocketBase socket,
Options options,
Address addr) |
static Sockets |
fromType(int socketType) |
static java.lang.String |
name(int socketType) |
static Sockets |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Sockets[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sockets PAIR
public static final Sockets PUB
public static final Sockets SUB
public static final Sockets REQ
public static final Sockets REP
public static final Sockets DEALER
public static final Sockets ROUTER
public static final Sockets PULL
public static final Sockets PUSH
public static final Sockets XPUB
public static final Sockets XSUB
public static final Sockets STREAM
public static final Sockets SERVER
public static final Sockets CLIENT
public static final Sockets RADIO
public static final Sockets DISH
public static final Sockets CHANNEL
public static final Sockets PEER
public static final Sockets RAW
public static final Sockets SCATTER
public static final Sockets GATHER
public static Sockets[] values()
for (Sockets c : Sockets.values()) System.out.println(c);
public static Sockets 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 nullabstract SocketBase create(Ctx parent, int tid, int sid)
public SessionBase create(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
public static SessionBase createSession(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
public static SocketBase create(int socketType, Ctx parent, int tid, int sid)
public static java.lang.String name(int socketType)
public static Sockets fromType(int socketType)
public static boolean compatible(int self, java.lang.String peer)