Changeset 99 in pacpussensors for trunk/TelnetClient/TelnetClient.cpp
- Timestamp:
- Oct 15, 2015, 2:47:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TelnetClient/TelnetClient.cpp
r54 r99 13 13 14 14 #include "TelnetClient.h" 15 15 #include <string> 16 16 17 17 using namespace pacpus; 18 using namespace std; 18 19 20 /// Default host address = 0.0.0.0 (any address) 21 static const string kDefaultHostAddress = "127.0.0.1"; 22 /// Default host port = 2368 23 static const uint16_t kDefaultHostPort = 2368; 19 24 20 25 DECLARE_STATIC_LOGGER("pacpus.base.TelnetClient"); … … 33 38 : ComponentBase(name) 34 39 { 40 address_.setAddress(kDefaultHostAddress.c_str()); 41 port_ = kDefaultHostPort; 35 42 } 36 43 … … 50 57 ComponentBase::COMPONENT_CONFIGURATION TelnetClient::configureComponent(XmlComponentConfig config) 51 58 { 52 address_.setAddress(param.getProperty("address"));53 port_ = param.getProperty("port").toUInt();54 59 55 60 return ComponentBase::CONFIGURED_OK;
Note:
See TracChangeset
for help on using the changeset viewer.