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
25432543 int packetLength = endOfVoxelQueryPacket - voxelQueryPacket;
25442544
25452545 // make sure we still have an active socket
2546− if (node->getActiveSocket()) {
2547− nodeList->getNodeSocket().writeDatagram((char*) voxelQueryPacket, packetLength,
2548− node->getActiveSocket()->getAddress(), node->getActiveSocket()->getPort());
2549− }
2546+ nodeList->writeDatagram(reinterpret_cast<const char*>(voxelQueryPacket), packetLength, node);
25502547
25512548 // Feed number of bytes to corresponding channel of the bandwidth meter
25522549 _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