PUB adapter; caller owns its thread and invokes send_frame there.
More...
|
| None | __init__ (self, str endpoint, *, int hwm=2) |
| | Initialize the instance.
|
| bool | send_frame (self, SpectrumFrame frame) |
| | Nonblocking send; return False when the transport drops a frame.
|
| None | close (self) |
| | Close the component.
|
|
| | _zmq = zmq |
| zmq.Socket[bytes] | _socket = zmq.Context.instance().socket(zmq.PUB) |
PUB adapter; caller owns its thread and invokes send_frame there.
◆ __init__()
| None sdrforge.protocols.spectrum_zmq.SpectrumZmqPublisher.__init__ |
( |
| self, |
|
|
str | endpoint, |
|
|
* | , |
|
|
int | hwm = 2 ) |
Initialize the instance.
- Parameters
-
| self | The current instance. |
| endpoint | The endpoint value. |
| hwm | The hwm value. |
◆ close()
| None sdrforge.protocols.spectrum_zmq.SpectrumZmqPublisher.close |
( |
| self | ) |
|
Close the component.
- Parameters
-
| self | The current instance. |
◆ send_frame()
| bool sdrforge.protocols.spectrum_zmq.SpectrumZmqPublisher.send_frame |
( |
| self, |
|
|
SpectrumFrame | frame ) |
Nonblocking send; return False when the transport drops a frame.
- Parameters
-
| self | The current instance. |
| frame | The frame value. |
- Returns
- The operation result.
◆ _socket
| zmq.Socket[bytes] sdrforge.protocols.spectrum_zmq.SpectrumZmqPublisher._socket = zmq.Context.instance().socket(zmq.PUB) |
|
protected |
◆ _zmq
| sdrforge.protocols.spectrum_zmq.SpectrumZmqPublisher._zmq = zmq |
|
protected |
The documentation for this class was generated from the following file: