示例#1
0
BindReceiverResp::BindReceiverResp(const CommandStatus &command_status,
                                   const SequenceNumber &sequence_number,
                                   const SystemId &system_id) :
  TlvsHeader(CommandLength(min_length),
             CommandId(CommandId::BindReceiverResp),
             command_status,
             sequence_number),
  system_id(system_id) {
  Header::updateLength(system_id.length());
}
 /// @brief Sets the system id.
 /// @param p The system id.
 void system_id(const Smpp::Char* p) {
     int diff = strlen(p) - system_id_.length();
     system_id_ = p;
     Header::update_length(diff);
 }
 /// @brief Sets the system id.
 /// @param p The system id.
 void system_id(const SystemId& p) {
     int diff = p.length() - system_id_.length();
     system_id_ = p;
     Header::update_length(diff);
 }