Changeset 99 in pacpussensors for trunk/TelnetClient/TelnetClient.cpp


Ignore:
Timestamp:
Oct 15, 2015, 2:47:01 PM (9 years ago)
Author:
nguyenhu
Message:

compilation under linux with 0.2.X framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TelnetClient/TelnetClient.cpp

    r54 r99  
    1313
    1414#include "TelnetClient.h"
    15 
     15#include <string>
    1616
    1717using namespace pacpus;
     18using namespace std;
    1819
     20/// Default host address = 0.0.0.0 (any address)
     21static const string kDefaultHostAddress = "127.0.0.1";
     22/// Default host port = 2368
     23static const uint16_t kDefaultHostPort = 2368;
    1924
    2025DECLARE_STATIC_LOGGER("pacpus.base.TelnetClient");
     
    3338    : ComponentBase(name)
    3439{
     40    address_.setAddress(kDefaultHostAddress.c_str());
     41    port_ = kDefaultHostPort;
    3542}
    3643
     
    5057ComponentBase::COMPONENT_CONFIGURATION  TelnetClient::configureComponent(XmlComponentConfig config)
    5158{
    52         address_.setAddress(param.getProperty("address"));
    53         port_ = param.getProperty("port").toUInt();
    5459
    5560        return ComponentBase::CONFIGURED_OK;
Note: See TracChangeset for help on using the changeset viewer.