A protobuf-aware message replier.
More...
|
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...
|
|
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.
◆ __init__() [1/2]
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 |
|
) |
| |
◆ __init__() [2/2]
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 |
|
) |
| |
◆ is_closed() [1/2]
bool rad.services.msg.MsgReplier.is_closed |
( |
|
self | ) |
|
◆ is_closed() [2/2]
bool rad.services.msg.MsgReplier.is_closed |
( |
|
self | ) |
|
◆ send() [1/2]
def rad.services.msg.MsgReplier.send |
( |
|
self, |
|
|
bytes |
identity, |
|
|
|
msg |
|
) |
| |
Send protobuf msg to identity.
- Returns
- Future that resolves when message been sent.
◆ send() [2/2]
def rad.services.msg.MsgReplier.send |
( |
|
self, |
|
|
bytes |
identity, |
|
|
|
msg |
|
) |
| |
Send protobuf msg to identity.
- Returns
- Future that resolves when message been sent.
◆ start() [1/2]
def rad.services.msg.MsgReplier.start |
( |
|
self | ) |
|
Starts accepting incoming requests.
◆ start() [2/2]
def rad.services.msg.MsgReplier.start |
( |
|
self | ) |
|
Starts accepting incoming requests.
◆ stop() [1/2]
def rad.services.msg.MsgReplier.stop |
( |
|
self | ) |
|
◆ stop() [2/2]
def rad.services.msg.MsgReplier.stop |
( |
|
self | ) |
|
The documentation for this class was generated from the following file:
- INTROOT/lib/python3.7/site-packages/rad/services/msg.py