ezmsg.zmq.repreq#
Classes
- class ZMQRep(*args, settings=None, **kwargs)[source]#
Bases:
Unit- Parameters:
settings (Settings | None)
- OUTPUT = OutputStream:unlocated[<class 'ezmsg.zmq.util.ZMQMessage'>](self.num_buffers=32, self.force_tcp=False)#
- SETTINGS#
alias of
ZMQRepSettings
- STATE#
alias of
ZMQRepState
- initialize()[source]#
Runs when the
Unitis instantiated. This is called from within the same process this unit will live. This lifecycle hook can be overridden. It can be run asasyncfunctions by simply adding theasynckeyword when overriding.- Return type:
None
- shutdown()[source]#
Runs when the
Unitterminates. This is called from within the same process this unit will live. This lifecycle hook can be overridden. It can be run asasyncfunctions by simply adding theasynckeyword when overriding.- Return type:
None
- class ZMQReq(*args, settings=None, **kwargs)[source]#
Bases:
Unit- Parameters:
settings (Settings | None)
- INPUT = InputStream:unlocated[<class 'ezmsg.zmq.util.ZMQMessage'>]()#
- OUTPUT = OutputStream:unlocated[<class 'ezmsg.zmq.util.ZMQMessage'>](self.num_buffers=32, self.force_tcp=False)#
- SETTINGS#
alias of
ZMQReqSettings
- STATE#
alias of
ZMQReqState
- initialize()[source]#
Runs when the
Unitis instantiated. This is called from within the same process this unit will live. This lifecycle hook can be overridden. It can be run asasyncfunctions by simply adding theasynckeyword when overriding.- Return type:
None
- shutdown()[source]#
Runs when the
Unitterminates. This is called from within the same process this unit will live. This lifecycle hook can be overridden. It can be run asasyncfunctions by simply adding theasynckeyword when overriding.- Return type:
None
- async send_req(msg)[source]#
- Parameters:
msg (ZMQMessage)
- Return type:
None
- class ZMQRep(*args, settings=None, **kwargs)[source]#
Bases:
Unit- Parameters:
settings (Settings | None)
- OUTPUT = OutputStream:unlocated[<class 'ezmsg.zmq.util.ZMQMessage'>](self.num_buffers=32, self.force_tcp=False)#
- SETTINGS#
alias of
ZMQRepSettings
- STATE#
alias of
ZMQRepState
- initialize()[source]#
Runs when the
Unitis instantiated. This is called from within the same process this unit will live. This lifecycle hook can be overridden. It can be run asasyncfunctions by simply adding theasynckeyword when overriding.- Return type:
None
- shutdown()[source]#
Runs when the
Unitterminates. This is called from within the same process this unit will live. This lifecycle hook can be overridden. It can be run asasyncfunctions by simply adding theasynckeyword when overriding.- Return type:
None
- class ZMQReq(*args, settings=None, **kwargs)[source]#
Bases:
Unit- Parameters:
settings (Settings | None)
- INPUT = InputStream:unlocated[<class 'ezmsg.zmq.util.ZMQMessage'>]()#
- OUTPUT = OutputStream:unlocated[<class 'ezmsg.zmq.util.ZMQMessage'>](self.num_buffers=32, self.force_tcp=False)#
- SETTINGS#
alias of
ZMQReqSettings
- STATE#
alias of
ZMQReqState
- initialize()[source]#
Runs when the
Unitis instantiated. This is called from within the same process this unit will live. This lifecycle hook can be overridden. It can be run asasyncfunctions by simply adding theasynckeyword when overriding.- Return type:
None
- shutdown()[source]#
Runs when the
Unitterminates. This is called from within the same process this unit will live. This lifecycle hook can be overridden. It can be run asasyncfunctions by simply adding theasynckeyword when overriding.- Return type:
None
- async send_req(msg)[source]#
- Parameters:
msg (ZMQMessage)
- Return type:
None