zmq_client

This module’s scope is the ZeroMQ client.

class tuna.zeromq.zmq_client.zmq_client[source]

This class’ responsibility is to define a ZeroMQ client that connects to a proxy to mediate communication with other clients.

Utilizes the lazy pirate pattern.

close_socket()[source]

This method’s goal is to gracefully close the client connection with the proxy.

open_socket()[source]

This method’s goal is to gracefully open the connection with the ZeroMQ proxy.

register_poller()[source]

This method’s goal is to create a polling mechanism so that message passing is non-blocking.

send(message)[source]

This method’s goal is to send a message to the proxy.

Parameters:

  • message : string

Returns:

  • string

    Containing the answer, which should be “ACK”.