File MIES_MiesUtilities_ZeroMQ.ipf

This file holds MIES utility functions for ZeroMQ.

Functions

variable GetZeroMQXOPFlags()
variable StopZeroMQSockets()

Stop every ZeroMQ socket/handler in this Igor Pro instance, then immediately rebind an active Igor Pro Bridge session (if present).

static variable BindZeroMQEndpoints()

Bind the server and publisher endpoints of MIES.

Returns:

number of successful binds

variable StartZeroMQSockets(variable forceRestart = defaultValue)

Start the ZeroMQ sockets and the message handler.

Debug note: Tracking the connection state can be done via netstat | grep $port. The binded port only shows up after a successfull connection with zeromq_client_connect() is established.

Returns:

0 on success, 1 if already running and 2 on error

variable UpdateXOPLoggingTemplate()

Update the logging template used by the ZeroMQ-XOP and ITCXOP2.