public enum Sockets extends Enum<Sockets>
| Enum Constant and Description |
|---|
DEALER |
PAIR |
PUB |
PULL |
PUSH |
REP |
REQ |
ROUTER |
STREAM |
SUB |
XPUB |
XSUB |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compatible(int self,
String peer) |
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 String |
name(int socketType) |
static Sockets |
valueOf(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 Sockets[] values()
for (Sockets c : Sockets.values()) System.out.println(c);
public static Sockets valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic 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 String name(int socketType)
public static Sockets fromType(int socketType)
public static boolean compatible(int self,
String peer)
Copyright © 2020. All rights reserved.