| 
    ZIO
    
   Python and C++ interface to ZeroMQ and Zyre 
   | 
 
Public Member Functions | |
| def | __init__ (self, port) | 
| def | send_bot (self, msg) | 
| def | recv_bot (self, timeout=-1) | 
| def | slurp_pay (self, timeout=None) | 
| def | put (self, msg) | 
| def | flush_pay (self) | 
| def | get (self, timeout=None) | 
| def | send_eot (self, msg=Message()) | 
| def | recv_eot (self, timeout=None) | 
Public Attributes | |
| port | |
| send_seqno | |
| is_sender | |
| credit | |
| total_credit | |
| recv_seqno | |
| routing_id | |
Static Public Attributes | |
| int | credit = 0 | 
| int | total_credit = 0 | 
| bool | is_sender = True | 
| int | routing_id = 0 | 
| int | send_seqno = -1 | 
| int | recv_seqno = -1 | 
A Flow object provides ZIO flow protocol API It is equivalent to the C++ zio::flow::Flow class All timeouts are in milliseconds. A timeout of None means forever.
| def zio.flow.proto.Flow.__init__ | ( | self, | |
| port | |||
| ) | 
| def zio.flow.proto.Flow.flush_pay | ( | self | ) | 
| def zio.flow.proto.Flow.get | ( | self, | |
timeout = None  | 
        |||
| ) | 
| def zio.flow.proto.Flow.put | ( | self, | |
| msg | |||
| ) | 
| def zio.flow.proto.Flow.recv_bot | ( | self, | |
timeout = -1  | 
        |||
| ) | 
| def zio.flow.proto.Flow.recv_eot | ( | self, | |
timeout = None  | 
        |||
| ) | 
Recv an EOT message. EOT message is returned or None if timeout occurs. If app explicitly calls send_eot() it should call recv_eot() to wait for the ack from the other end. If an app receives EOT as an unepxected message while receiving PAY or DAT then it should send_eot() but not expect another EOT ack.
| def zio.flow.proto.Flow.send_bot | ( | self, | |
| msg | |||
| ) | 
| def zio.flow.proto.Flow.send_eot | ( | self, | |
msg = Message()  | 
        |||
| ) | 
| def zio.flow.proto.Flow.slurp_pay | ( | self, | |
timeout = None  | 
        |||
| ) | 
Receive any waiting PAY messages The flow object will slurp prior to a sending a DAT but the application may call this at any time after BOT. Number of credits slurped is returned. None is returned if other than a PAY is received. Caller should likely respond to that with send_eot(msg,0).
 1.8.13