def __init__(self,
                 chip_x=0,
                 chip_y=0,
                 local_host=None,
                 local_port=None,
                 remote_host=None,
                 remote_port=None):
        """

        :param chip_x: The x-coordinate of the chip on the board with this\
                remote_host
        :type chip_x: int
        :param chip_y: The y-coordinate of the chip on the board with this\
                remote_host
        :type chip_y: int
        :param local_host: The optional ip address or host name of the local\
                interface to listen on
        :type local_host: str
        :param local_port: The optional local port to listen on
        :type local_port: int
        :param remote_host: The optional remote host name or ip address to\
                send messages to.  If not specified, sending will not be\
                possible using this connection
        :type remote_host: str
        :param remote_port: The optional remote port number to send messages\
                to.  If not specified, sending will not be possible using this\
                connection
        :type remote_port: int
        """
        if remote_port is None:
            remote_port = constants.SCP_SCAMP_PORT
        UDPSDPConnection.__init__(self, chip_x, chip_y, local_host, local_port,
                                  remote_host, remote_port)
        AbstractSCPReceiver.__init__(self)
        AbstractSCPSender.__init__(self)
Example #2
0
 def __init__(self, cabinet, frame, boards, local_host=None,
              local_port=None, remote_host=None,
              remote_port=constants.SCP_SCAMP_PORT):
     """
     :param cabinet: The cabinet number of the connection
     :type cabinet: int
     :param frame: The frame number of the connection
     :type frame: int
     :param boards: The boards that the connection can control on the same\
             backplane
     :type boards: iterable of int
     :param local_host: The optional ip address or host name of the local\
             interface to listen on
     :type local_host: str
     :param local_port: The optional local port to listen on
     :type local_port: int
     :param remote_host: The optional remote host name or ip address to\
             send messages to.  If not specified, sending will not be\
             possible using this connection
     :type remote_host: str
     :param remote_port: The optional remote port number to send messages\
             to.  If not specified, sending will not be possible using this\
             connection
     """
     UDPConnection.__init__(
         self, local_host, local_port, remote_host, remote_port)
     AbstractSCPReceiver.__init__(self)
     AbstractSCPSender.__init__(self)
     self._cabinet = cabinet
     self._frame = frame
     self._boards = boards
 def __init__(self,
              cabinet,
              frame,
              boards,
              local_host=None,
              local_port=None,
              remote_host=None,
              remote_port=None):
     """
     :param cabinet: The cabinet number of the connection
     :type cabinet: int
     :param frame: The frame number of the connection
     :type frame: int
     :param boards: The boards that the connection can control on the same\
             backplane
     :type boards: iterable of int
     :param local_host: The optional ip address or host name of the local\
             interface to listen on
     :type local_host: str
     :param local_port: The optional local port to listen on
     :type local_port: int
     :param remote_host: The optional remote host name or ip address to\
             send messages to.  If not specified, sending will not be\
             possible using this connection
     :type remote_host: str
     :param remote_port: The optional remote port number to send messages\
             to.  If not specified, sending will not be possible using this\
             connection
     """
     if remote_port is None:
         remote_port = constants.SCP_SCAMP_PORT
     UDPConnection.__init__(self, local_host, local_port, remote_host,
                            remote_port)
     AbstractSCPReceiver.__init__(self)
     AbstractSCPSender.__init__(self)
     self._cabinet = cabinet
     self._frame = frame
     self._boards = boards