irrad_control/main.py
def _send_cmd_get_reply(self, hostname, cmd_dict):
        """Sending a command to the server / interpreter and waiting for its reply. This runs on a separate QThread due
        to the blocking nature of the recv() method of sockets. *cmd_dict* contains the target, cmd and cmd_data."""

        # Spawn socket to send request to server / interpreter and connect
        req = self.context.socket(zmq.REQ)
        req.connect(self._tcp_addr(self.setup['port']['cmd'], hostname))

        # Send command dict and wait for reply
        req.send_json(cmd_dict)
        reply = req.recv_json()

        # Update reply dict by the servers IP address
        reply['hostname'] = hostname

        # Emit the received reply in pyqt signal and close socket
        self.reply_received.emit(reply)
        req.close()
Sending a command to the server / interpreter and waiting for its reply. This runs on a separate QThread due
        to the blocking nature of the recv() method of sockets. *cmd_dict* contains the target, cmd and cmd_data.
Sending a command to the server / interpreter and waiting for its reply. This runs on a separate QThread due
to the blocking nature of the recv() method of sockets. *cmd_dict* contains the target, cmd and cmd_data.
Sending a command to the server / interpreter and waiting for its reply . This runs on a separate QThread due to the blocking nature of the recv () method of sockets . * cmd_dict * contains the target cmd and cmd_data .
def _send_cmd_get_reply(self, hostname, cmd_dict):
        req = self.context.socket(zmq.REQ)
        req.connect(self._tcp_addr(self.setup['port']['cmd'], hostname))
        req.send_json(cmd_dict)
        reply = req.recv_json()
        reply['hostname'] = hostname
        self.reply_received.emit(reply)
        req.close()
def _send_cmd_get_reply ( self , hostname , cmd_dict ) : req = self . context . socket ( zmq . REQ ) req . connect ( self . _tcp_addr ( self . setup [ 'port' ] [ 'cmd' ] , hostname ) ) req . send_json ( cmd_dict ) reply = req . recv_json ( ) reply [ 'hostname' ] = hostname self . reply_received . emit ( reply ) req . close ( )
Sending a command to the server / interpreter and waiting for its reply.
Sending a command to the server / interpreter and waiting for its reply .
"""Sending a command to the server / interpreter and waiting for its reply. This runs on a separate QThread due
        to the blocking nature of the recv() method of sockets. *cmd_dict* contains the target, cmd and cmd_data.""" # Spawn socket to send request to server / interpreter and connect # Send command dict and wait for reply # Update reply dict by the servers IP address # Emit the received reply in pyqt signal and close socket
self
hostname
cmd_dict