Changeset 64 in pacpussensors for trunk/PacpusSocket/PacpusSocket.cpp
- Timestamp:
- Sep 4, 2014, 11:19:05 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PacpusSocket/PacpusSocket.cpp
r38 r64 54 54 { 55 55 56 socketType_ = param.getProperty("typeSocket");56 socketType_ = config.getProperty("typeSocket"); 57 57 58 58 if (socketType_ == "client" || socketType_ == "Client") 59 59 { 60 address2send_.setAddress( param.getProperty("address"));61 port2send_ = param.getProperty("port").toUInt();60 address2send_.setAddress(config.getProperty("address")); 61 port2send_ = config.getProperty("port").toUInt(); 62 62 socketType_ = "client"; 63 63 } 64 64 else if (socketType_ == "server" || socketType_ == "Server") 65 65 { 66 port2bind_ = param.getProperty("port").toUInt();66 port2bind_ = config.getProperty("port").toUInt(); 67 67 socketType_ = "server"; 68 68 } … … 70 70 { 71 71 qDebug("typeSocket incorrect, become client"); 72 address2send_.setAddress( param.getProperty("address"));73 port2send_ = param.getProperty("port").toUInt();72 address2send_.setAddress(config.getProperty("address")); 73 port2send_ = config.getProperty("port").toUInt(); 74 74 socketType_ = "client"; 75 75 }
Note:
See TracChangeset
for help on using the changeset viewer.