|
rad
2.0.0
|
A message requestor class. More...
Public Member Functions | |
| def | __init__ |
| Create new requestor. More... | |
| def | __enter__ |
| Context manager API implementation. More... | |
| def | __exit__ |
| Context manager API implementation. More... | |
| def | is_closed |
| Returns true is the socket accepting requests is closed, false otherwise. More... | |
| def | send |
| Send msg to server. More... | |
| def | receive |
| Receive a reply. More... | |
| def | close |
| Close the connection. More... | |
| def | __init__ |
| Create new requestor. More... | |
| def | __enter__ |
| Context manager API implementation. More... | |
| def | __exit__ |
| Context manager API implementation. More... | |
| def | is_closed |
| Returns true is the socket accepting requests is closed, false otherwise. More... | |
| def | send |
| Send msg to server. More... | |
| def | receive |
| Receive a reply. More... | |
| def | close |
| Close the connection. More... | |
A message requestor class.
Add close or context manager support to automatically clean up Allow control of identity prefix.
| def rad.services.msg.MsgRequestor.__init__ | ( | self, | |
| endpoint | |||
| ) |
Create new requestor.
| def rad.services.msg.MsgRequestor.__init__ | ( | self, | |
| endpoint | |||
| ) |
Create new requestor.
| def rad.services.msg.MsgRequestor.__enter__ | ( | self | ) |
Context manager API implementation.
| def rad.services.msg.MsgRequestor.__enter__ | ( | self | ) |
Context manager API implementation.
| def rad.services.msg.MsgRequestor.__exit__ | ( | self, | |
| exc | |||
| ) |
Context manager API implementation.
| def rad.services.msg.MsgRequestor.__exit__ | ( | self, | |
| exc | |||
| ) |
Context manager API implementation.
| def rad.services.msg.MsgRequestor.close | ( | self | ) |
Close the connection.
| def rad.services.msg.MsgRequestor.close | ( | self | ) |
Close the connection.
| def rad.services.msg.MsgRequestor.is_closed | ( | self, | |
| bool | |||
| ) |
Returns true is the socket accepting requests is closed, false otherwise.
| def rad.services.msg.MsgRequestor.is_closed | ( | self, | |
| bool | |||
| ) |
Returns true is the socket accepting requests is closed, false otherwise.
| def rad.services.msg.MsgRequestor.receive | ( | self, | |
| msg, | |||
| asyncio, | |||
| Future | |||
| ) |
Receive a reply.
@note: To abort after a timeout, use `asyncio.wait_for`.
| def rad.services.msg.MsgRequestor.receive | ( | self, | |
| msg, | |||
| asyncio, | |||
| Future | |||
| ) |
Receive a reply.
@note: To abort after a timeout, use `asyncio.wait_for`.
| def rad.services.msg.MsgRequestor.send | ( | self, | |
| msg, | |||
| asyncio, | |||
| Future | |||
| ) |
Send msg to server.
| def rad.services.msg.MsgRequestor.send | ( | self, | |
| msg, | |||
| asyncio, | |||
| Future | |||
| ) |
Send msg to server.
1.8.5