libSDRForge
Loading...
Searching...
No Matches
sdrforge.protocols.spectrum_zmq.SpectrumZmqPublisher Class Reference

PUB adapter; caller owns its thread and invokes send_frame there. More...

Public Member Functions

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.

Protected Attributes

 _zmq = zmq
zmq.Socket[bytes] _socket = zmq.Context.instance().socket(zmq.PUB)

Detailed Description

PUB adapter; caller owns its thread and invokes send_frame there.

Constructor & Destructor Documentation

◆ __init__()

None sdrforge.protocols.spectrum_zmq.SpectrumZmqPublisher.__init__ ( self,
str endpoint,
* ,
int hwm = 2 )

Initialize the instance.

Parameters
selfThe current instance.
endpointThe endpoint value.
hwmThe hwm value.

Member Function Documentation

◆ close()

None sdrforge.protocols.spectrum_zmq.SpectrumZmqPublisher.close ( self)

Close the component.

Parameters
selfThe 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
selfThe current instance.
frameThe frame value.
Returns
The operation result.

Member Data Documentation

◆ _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: