Dash Core  0.12.2.1
P2P Digital Currency
zmq_sub Namespace Reference

Variables

int port = 28332
 
 zmqContext = zmq.Context()
 
 zmqSubSocket = zmqContext.socket(zmq.SUB)
 
 msg = zmqSubSocket.recv_multipart()
 
 topic = str(msg[0].decode("utf-8"))
 
 body = msg[1]
 
string sequence = "Unknown";
 
 msgSequence = struct.unpack('<I', msg[-1])[-1]
 

Variable Documentation

◆ body

zmq_sub.body = msg[1]

Definition at line 24 of file zmq_sub.py.

◆ msg

◆ msgSequence

zmq_sub.msgSequence = struct.unpack('<I', msg[-1])[-1]

Definition at line 28 of file zmq_sub.py.

◆ port

◆ sequence

zmq_sub.sequence = "Unknown";

Definition at line 25 of file zmq_sub.py.

◆ topic

zmq_sub.topic = str(msg[0].decode("utf-8"))

Definition at line 23 of file zmq_sub.py.

◆ zmqContext

zmq_sub.zmqContext = zmq.Context()

Definition at line 10 of file zmq_sub.py.

◆ zmqSubSocket

zmq_sub.zmqSubSocket = zmqContext.socket(zmq.SUB)

Definition at line 11 of file zmq_sub.py.