gufo.snmp.async_client.util¶
Various utilities.
send_and_recv(fd, sender, receiver, policer, timeout)
async
¶
Send request and receive response.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
fd
|
int
|
File descriptor. |
required |
sender
|
Callable[[], None]
|
Callable which sends data. |
required |
receiver
|
Callable[[], T]
|
Callable which receives data. |
required |
policer
|
Optional[BasePolicer]
|
Optional policer instance. |
required |
timeout
|
float
|
Response timeout. |
required |