def convert_offer_to_request_select(self): """ На основании последнего полученного пакета Offer создает Request Select :return: None :exception: AttributeError если еще не было Offer """ packet = self._get_last_offer() if not packet: self._raise_no_packet_exception() self._current_packet_send = PacketUtils.convert_offer_to_request_select(self._get_last_offer()) logging.info( "Last Offer packet with xid = %s converted to Request Select and ready to send", self.get_xid_send() )
def convert_offer_to_request_select(self): """ На основании последнего полученного пакета Offer создает Request Select :return: None :exception: AttributeError если еще не было Offer """ packet = self._get_last_offer() if not packet: self._raise_no_packet_exception() self._current_packet_send = PacketUtils.convert_offer_to_request_select( self._get_last_offer()) logging.info( 'Last Offer packet with xid = %s converted to Request Select and ready to send', self.get_xid_send())