Changeset 38 in pacpussensors for trunk/PacpusSocket
- Timestamp:
- Feb 26, 2014, 2:20:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PacpusSocket/PacpusSocket.cpp
r36 r38 31 31 32 32 ////////////////////////////////////////////////////////////////////////// 33 // C 33 // Constructeur 34 34 ////////////////////////////////////////////////////////////////////////// 35 35 PacpusSocket::PacpusSocket(QString name) … … 92 92 qDebug() << "Socket bound for server on port " << port2bind_; 93 93 else 94 qWarning() << "Failed to bind socket on port" << port2bind_;94 qWarning() << "Failed to bind socket for server on port" << port2bind_; 95 95 } 96 96 else if (socketType_ == "client") 97 97 { 98 if (udpSocket_->bind(QHostAddress::Any, port2send_ + 1, QUdpSocket::DontShareAddress)) 99 qDebug() << "Socket bound for client on port " << port2send_ + 1; 100 else 101 qWarning() << "Failed to bind socket" << port2send_ + 1; 98 // Pas utile en tant que client (UDP) 99 //if (udpSocket_->bind(QHostAddress::Any, port2send_, QUdpSocket::DontShareAddress)) 100 //qDebug() << "Socket bound for client on port " << port2send_; 101 //else 102 //qWarning() << "Failed to bind socket client on port" << port2send_; 102 103 } 103 104 … … 165 166 if(udpSocket_->readDatagram(datagram.data(), datagram.size(), &sender, &senderPort) != -1) 166 167 { 167 qDebug() << "RCV : " << datagram << " by " << sender << "on port " << senderPort << " size:" << datagram.size();168 //qDebug() << "RCV : " << datagram << " by " << sender << "on port " << senderPort << " size:" << datagram.size(); 168 169 169 170 if (socketType_ == "server")
Note:
See TracChangeset
for help on using the changeset viewer.