Changeset 34 in pacpussensors for trunk/PacpusSocket/PacpusSocket.cpp
- Timestamp:
- Jan 20, 2014, 3:52:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PacpusSocket/PacpusSocket.cpp
r31 r34 121 121 for (int i = 0; i < listClients.size(); i++) 122 122 { 123 if ((sent = udpSocket_->writeDatagram(frame.toLocal8Bit(), listClients[i]->getAddress(), listClients[i]->getPort())) == -1)124 125 //else126 123 if ((sent = udpSocket_->writeDatagram(frame.toLocal8Bit(), listClients[i]->getAddress(), listClients[i]->getPort())) == -1) 124 qDebug() << "Failed to send the frame: " << listClients[i]->getAddress() << listClients[i]->getPort() << frame << endl; 125 //else 126 //qDebug() << "TO NETWORK:" << listClients[i]->getAddress() << listClients[i]->getPort() << frame << "size" << sent; 127 127 } 128 128 } … … 174 174 { 175 175 if (listClients[i]->getAddress() == sender && listClients[i]->getPort() == senderPort) 176 flag = true;176 flag = true; 177 177 } 178 178 … … 189 189 emit newDatagram(datagram); 190 190 } 191 else if (datagram.size() == 4) { 191 else if (datagram.size() == 4) 192 { 192 193 // Manette Dualshock 3 pour le wifibot 193 194 emit newDatagram(datagram); 194 } else { 195 } 196 else 197 { 195 198 QString string(datagram.data()); 196 199 emit newQString(string);
Note:
See TracChangeset
for help on using the changeset viewer.