MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetSendQueueInfo

Method GetSendQueueInfo

engine/Poseidon/Network/NetTransportNet.cpp:1433–1445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1431 return CRError;
1432 }
1433 msg->setFlags(MSG_ALL_FLAGS, MSG_TO_BCAST_FLAG | MSG_MAGIC_FLAG);
1434 msg->setData((unsigned8*)&packet, sizeof(packet));
1435 msg->send(true); // urgent
1436 next = now + 1000 * CREATE_PLAYER_RESEND;
1437 }
1438 leaveSnd();
1439 SLEEP_MS(NET_CHECK_WAIT);
1440 enterSnd();
1441 now = getSystemTime();
1442 } while (ackPlayer == CRNone && now < timeout);
1443
1444 if (ackPlayer != CRNone)
1445 { // initial hand-shake (to initialize band-width)
1446 channel->checkConnectivity(0);
1447 struct sockaddr_in distant;
1448 channel->getDistantAddress(distant);

Callers 4

EstimateBandwidthMethod · 0.80
OnSimulateMethod · 0.80
OnSimulateMethod · 0.80
EstimateBandwidthMethod · 0.80

Calls 2

getMethod · 0.45

Tested by

no test coverage detected