History

pull all available datagrams in Application processDatagrams

Stephen Birarda committed 12 years ago

Commit cbcdeb51 parent 3ab7a6d1 file · +1 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+1−1
@@ -4263,7 +4263,7 @@ void Application::processDatagrams() { · 4262 unmodified lines
4263 HifiSockAddr senderSockAddr;4263 HifiSockAddr senderSockAddr;
4264 ssize_t bytesReceived;4264 ssize_t bytesReceived;
4265 4265
4266 if (NodeList::getInstance()->getNodeSocket().hasPendingDatagrams() &&4266 while (NodeList::getInstance()->getNodeSocket().hasPendingDatagrams() &&
4267 (bytesReceived = NodeList::getInstance()->getNodeSocket().readDatagram((char*) _incomingPacket,4267 (bytesReceived = NodeList::getInstance()->getNodeSocket().readDatagram((char*) _incomingPacket,
4268 MAX_PACKET_SIZE,4268 MAX_PACKET_SIZE,
4269 senderSockAddr.getAddressPointer(),4269 senderSockAddr.getAddressPointer(),

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