def message(self): cm_id = Pack.get_unsigned_long_data(self.command_id) seq_no = Pack.get_unsigned_long_data(self.sequence_no) t_len = len(self._message_body) + len(cm_id) + len(seq_no) + 4 return Pack.get_unsigned_long_data( t_len) + cm_id + seq_no + self._message_body
def message(self): return Pack.get_unsigned_long_data(len( self._message_body)) + Pack.get_unsigned_long_data( self.command_id) + Pack.get_unsigned_long_data( self.sequence_no) + self._message_body