ZMQ Sockets

This object is designed to send/receive floats or IQData from/to a remote machine. Typically to GnuRadio or Python remote scripts.

!!! note Warning

**This feature is available only with a License - Contact us for more details**

For a detailed explanation of what ZMQ is, please refer to :

class ZmqSocket {
        constructor ZmqSocket(String socket_type, String destport);

        bool sendString( String text );
        String receiveString(bool blocking );

        bool sendIQ( IQData data );
        IQData receiveIQ( bool blocking - default non blocking );

        float receiveFloat( bool blocking - default non blocking );
}

ZmqSocket

Create a new ZMQ connection.

var zmq = new ZmqSocket( socket_type, port);

Parameters:
* socket_type : One of the following ZMQ_REP, ZMQ_REQ, ZMQ_PUB, ZMQ_SUB
* port : connection string, see ZMQ doc for syntax.

.sendString

Send a JavaScript String to the ZMQ Socket

.receiveString

Receive a string from the ZMQ Socket

receiveString( blocking )
Parameters:
* blocking : boolean, if true : waits for message to arrive. Function does not return has long has the message has not been received. default : false

.sendIQ

Send IQData to ZMQ socket.

.receiveIQ

Receive IQData from a ZMQ socket.

.receiveFloat

Receive one single float value from a ZMQ socket.

Last update: May 22, 2023