Esempio n. 1
0
    def __init__(self, port, sdp_port=1, board_address=None, tag_id=None):
        """

        :param port: The UDP port to listen to on the board for this tag
        :type port: int
        :param sdp_port: The SDP port number to be used when constructing SDP\
                    packets from the received UDP packets for this tag
        :type sdp_port: int
        :param board_address: Optional fixed board ip address
        :type board_address: str
        :param tag_id: Optional fixed tag id required
        :type tag_id: int
        """
        AbstractTagAllocatorConstraint.__init__(self, board_address, tag_id,
                                                port)
        self._sdp_port = sdp_port
    def __init__(self, port, sdp_port=1, board_address=None, tag_id=None):
        """

        :param port: The UDP port to listen to on the board for this tag
        :type port: int
        :param sdp_port: The SDP port number to be used when constructing SDP\
                    packets from the received UDP packets for this tag
        :type sdp_port: int
        :param board_address: Optional fixed board ip address
        :type board_address: str
        :param tag_id: Optional fixed tag id required
        :type tag_id: int
        """
        AbstractTagAllocatorConstraint.__init__(self, board_address, tag_id,
                                                port)
        self._sdp_port = sdp_port
    def __init__(self, ip_address, port, strip_sdp, board_address=None,
                 tag_id=None):
        """

        :param ip_address: The IP address that the tag will cause data to be\
                    sent to
        :type ip_address: str
        :param port: The port that the tag will cause data to be sent to
        :type port: int
        :param strip_sdp: Whether the tag requires that SDP headers are\
                    stripped before transmission of data
        :type strip_sdp: bool
        :param board_address: Optional fixed board ip address
        :type board_address: str
        :param tag_id: Optional fixed tag id required
        :type tag_id: int
        """
        AbstractTagAllocatorConstraint.__init__(self, board_address, tag_id,
                                                port)
        self._ip_address = ip_address
        self._strip_sdp = strip_sdp