|
rad
3.0.0
|
A protobuf-aware message replier. More...
Public Member Functions | |
| def | __init__ (self, *str endpoint, list msg_types, handler, zmq.asyncio.Context zmq_ctx, asyncio.AbstractEventLoop loop, unknown_msg_handler=None) |
| bool | is_closed (self) |
| def | start (self) |
| Starts accepting incoming requests. More... | |
| def | send (self, bytes identity, msg) |
| Send protobuf msg to identity. More... | |
| def | stop (self) |
| Unbinds socket and shuts down all related tasks to this Replier. More... | |
A protobuf-aware message replier.
| def rad.services.msg.MsgReplier.__init__ | ( | self, | |
| *str | endpoint, | ||
| list | msg_types, | ||
| handler, | |||
| zmq.asyncio.Context | zmq_ctx, | ||
| asyncio.AbstractEventLoop | loop, | ||
unknown_msg_handler = None |
|||
| ) |
| bool rad.services.msg.MsgReplier.is_closed | ( | self | ) |
| def rad.services.msg.MsgReplier.send | ( | self, | |
| bytes | identity, | ||
| msg | |||
| ) |
Send protobuf msg to identity.
| def rad.services.msg.MsgReplier.start | ( | self | ) |
Starts accepting incoming requests.
| def rad.services.msg.MsgReplier.stop | ( | self | ) |
Unbinds socket and shuts down all related tasks to this Replier.
The ZmqMsgReplier is essentially dead after this.