ZIO
Python and C++ interface to ZeroMQ and Zyre
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
zio.domo.client.Client Class Reference
Inheritance diagram for zio.domo.client.Client:
Inheritance graph
[legend]
Collaboration diagram for zio.domo.client.Client:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, broker, socket_type=zmq.ROUTER, verbose=False)
 
def reconnect_to_broker (self)
 
def send (self, service, request)
 
def recv (self)
 

Public Attributes

 socket_type
 
 verbose
 

Static Public Attributes

 broker = None
 
 ctx = None
 
 client = None
 
 poller = None
 
int timeout = 2500
 
bool verbose = False
 

Detailed Description

Majordomo Protocol Client API, Python version.

  Implements the MDP/Worker spec at http:#rfc.zeromq.org/spec:7.

Definition at line 19 of file client.py.

Constructor & Destructor Documentation

◆ __init__()

def zio.domo.client.Client.__init__ (   self,
  broker,
  socket_type = zmq.ROUTER,
  verbose = False 
)

Definition at line 31 of file client.py.

Member Function Documentation

◆ reconnect_to_broker()

def zio.domo.client.Client.reconnect_to_broker (   self)
Connect or reconnect to broker

Definition at line 43 of file client.py.

◆ recv()

def zio.domo.client.Client.recv (   self)
Returns the reply message or None if there was no reply.

Definition at line 72 of file client.py.

◆ send()

def zio.domo.client.Client.send (   self,
  service,
  request 
)
Send request to broker

Definition at line 55 of file client.py.

Member Data Documentation

◆ broker

zio.domo.client.Client.broker = None
static

Definition at line 24 of file client.py.

◆ client

zio.domo.client.Client.client = None
static

Definition at line 26 of file client.py.

◆ ctx

zio.domo.client.Client.ctx = None
static

Definition at line 25 of file client.py.

◆ poller

zio.domo.client.Client.poller = None
static

Definition at line 27 of file client.py.

◆ socket_type

zio.domo.client.Client.socket_type

Definition at line 33 of file client.py.

◆ timeout

int zio.domo.client.Client.timeout = 2500
static

Definition at line 28 of file client.py.

◆ verbose [1/2]

bool zio.domo.client.Client.verbose = False
static

Definition at line 29 of file client.py.

◆ verbose [2/2]

zio.domo.client.Client.verbose

Definition at line 34 of file client.py.


The documentation for this class was generated from the following file: