Changeset 64 in pacpussensors for trunk/PacpusSocket


Ignore:
Timestamp:
Sep 4, 2014, 11:19:05 AM (10 years ago)
Author:
phudelai
Message:

Programme détection d'obstacles amélioré

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PacpusSocket/PacpusSocket.cpp

    r38 r64  
    5454{
    5555
    56         socketType_ = param.getProperty("typeSocket");
     56        socketType_ = config.getProperty("typeSocket");
    5757       
    5858        if (socketType_ == "client" || socketType_ == "Client")
    5959        {
    60             address2send_.setAddress(param.getProperty("address"));
    61             port2send_ = param.getProperty("port").toUInt();
     60            address2send_.setAddress(config.getProperty("address"));
     61            port2send_ = config.getProperty("port").toUInt();
    6262            socketType_ = "client";             
    6363        }
    6464        else if (socketType_ == "server" || socketType_ == "Server")
    6565        {
    66             port2bind_ = param.getProperty("port").toUInt();
     66            port2bind_ = config.getProperty("port").toUInt();
    6767            socketType_ = "server";
    6868        }
     
    7070        {
    7171            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();
    7474            socketType_ = "client";
    7575        }
Note: See TracChangeset for help on using the changeset viewer.