Exemplo n.º 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());
}
Exemplo n.º 2
0
 /// @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);
 }
Exemplo n.º 3
0
 /// @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);
 }