| 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); |
no test coverage detected