public abstract class ZMQSocketWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.zeromq.ZContext |
context_ |
protected int |
port_ |
protected static ConcurrentHashMap<Integer,ZMQSocketWrapper> |
portSocketMap_ |
protected org.zeromq.ZMQ.Socket |
socket_ |
static int |
STARTING_PORT_NUMBER |
protected org.zeromq.SocketType |
type_ |
| Constructor and Description |
|---|
ZMQSocketWrapper(org.zeromq.SocketType type) |
ZMQSocketWrapper(org.zeromq.SocketType type,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getPort() |
abstract void |
initialize(int port) |
mmcorej.org.json.JSONObject |
receiveMessage() |
void |
sendMessage(mmcorej.org.json.JSONObject json)
Send a json object as a message, removing binary data as needed and sending in multiple parts
|
protected static org.zeromq.ZContext context_
protected static ConcurrentHashMap<Integer,ZMQSocketWrapper> portSocketMap_
public static int STARTING_PORT_NUMBER
protected org.zeromq.SocketType type_
protected volatile org.zeromq.ZMQ.Socket socket_
protected int port_
public ZMQSocketWrapper(org.zeromq.SocketType type,
int port)
public ZMQSocketWrapper(org.zeromq.SocketType type)
public int getPort()
public abstract void initialize(int port)
public void close()
public void sendMessage(mmcorej.org.json.JSONObject json)
json - public mmcorej.org.json.JSONObject receiveMessage()
Copyright © 2023. All rights reserved.