def build_ack_message(self, sequence_nbr: int, ack_nbr: int) -> IpapMessage:
     """
     Builds an ack to respond other messages
     :param sequence_nbr: sequence number for the message
     :param ack_nbr: ack number to send within the message
     :return:
     """
     message = IpapMessage(domain_id=int(self.domain), ipap_version=IpapMessage.IPAP_VERSION, _encode_network=True)
     message.set_ack(True)
     message.set_seqno(sequence_nbr)
     message.set_ack_seq_no(ack_nbr)
     return message
 def build_syn_ack_message(self, sequence_nbr: int, ack_nbr: int) -> IpapMessage:
     """
     Builds an ack to respond syn_ack message
     :param sequence_nbr: sequence number for the message
     :param ack_nbr: ack number to send within the message
     :return:
     """
     print('build syn ack message {0}.{1}'.format(str(sequence_nbr), str(ack_nbr)))
     message = IpapMessage(domain_id=int(self.domain), ipap_version=IpapMessage.IPAP_VERSION, _encode_network=True)
     message.set_syn(True)
     message.set_ack(True)
     message.set_seqno(sequence_nbr)
     message.set_ack_seq_no(ack_nbr)
     return message