History

add writeDatagram helper to NodeList to insert md5 hash

Stephen Birarda committed 12 years ago

Commit a8237221 parent cb6316b27 files · +142 −107Browse files

Showing the changes to interface/src/MetavoxelSystem.cpp (1 of 27 files). Show all

Unified · Split

interface/src/MetavoxelSystem.cpp+1−4
@@ -226,10 +226,7 @@ void MetavoxelClient::receivedData(const QByteArray& data) { · 225 unmodified lines
226226
227227 void MetavoxelClient::sendData(const QByteArray& data) {
228228 QMutexLocker locker(&_node->getMutex());
229− const HifiSockAddr* address = _node->getActiveSocket();
230− if (address) {
231− NodeList::getInstance()->getNodeSocket().writeDatagram(data, address->getAddress(), address->getPort());
232− }
229+ NodeList::getInstance()->writeDatagram(data, _node);
233230 }
234231
235232 void MetavoxelClient::readPacket(Bitstream& in) {