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/Application.cpp (1 of 27 files). Show all

Unified · Split

interface/src/Application.cpp+1−4
@@ -2543,10 +2543,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType, Node · 2542 unmodified lines
2543 int packetLength = endOfVoxelQueryPacket - voxelQueryPacket;2543 int packetLength = endOfVoxelQueryPacket - voxelQueryPacket;
2544 2544
2545 // make sure we still have an active socket2545 // make sure we still have an active socket
2546 if (node->getActiveSocket()) {2546 nodeList->writeDatagram(reinterpret_cast<const char*>(voxelQueryPacket), packetLength, node);
2547 nodeList->getNodeSocket().writeDatagram((char*) voxelQueryPacket, packetLength,
2548 node->getActiveSocket()->getAddress(), node->getActiveSocket()->getPort());
2549 }
2550 2547
2551 // Feed number of bytes to corresponding channel of the bandwidth meter2548 // Feed number of bytes to corresponding channel of the bandwidth meter
2552 _bandwidthMeter.outputStream(BandwidthMeter::VOXELS).updateValue(packetLength);2549 _bandwidthMeter.outputStream(BandwidthMeter::VOXELS).updateValue(packetLength);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t