def send_sdp_message(self, sdp_message): # If a reply is expected, the connection should if sdp_message.sdp_header.flags == SDPFlag.REPLY_EXPECTED: udp_utils.update_sdp_header_for_udp_send( sdp_message.sdp_header, self._chip_x, self._chip_y) else: udp_utils.update_sdp_header_for_udp_send( sdp_message.sdp_header, 0, 0) self.send(struct.pack("<2x") + sdp_message.bytestring)
def send_sdp_message(self, sdp_message): # If a reply is expected, the connection should if sdp_message.sdp_header.flags == SDPFlag.REPLY_EXPECTED: udp_utils.update_sdp_header_for_udp_send(sdp_message.sdp_header, self._chip_x, self._chip_y) else: udp_utils.update_sdp_header_for_udp_send(sdp_message.sdp_header, 0, 0) self.send(struct.pack("<2x") + sdp_message.bytestring)
def get_scp_data(self, scp_request): udp_utils.update_sdp_header_for_udp_send(scp_request.sdp_header, self._chip_x, self._chip_y) return struct.pack("<2x") + scp_request.bytestring
def get_scp_data(self, scp_request): udp_utils.update_sdp_header_for_udp_send(scp_request.sdp_header, 0, 0) return struct.pack("<2x") + scp_request.bytestring