Exemplo n.º 1
0
// send a ping to all players
void multi_ping_send_all()
{
	int idx;
	for(idx = 0;idx < MAX_PLAYERS;idx++){
		if(MULTI_CONNECTED(Net_players[idx]) && (Net_player != NULL) && (Net_player->player_id != Net_players[idx].player_id)){
			// start the ping
			multi_ping_start(&Net_players[idx].s_info.ping);			

			// send the ping packet
			send_ping(&Net_players[idx].p_info.addr);
		}
	}
}
Exemplo n.º 2
0
// send a ping to the specified address
void multi_ping_send(net_addr* addr, ping_struct* ps)
{
	multi_ping_start(ps);
	send_ping(addr);
}
Exemplo n.º 3
0
// send a ping to a specific player
void multi_ping_send(net_player* p)
{
	multi_ping_start(&p->s_info.ping);
	send_ping(&p->p_info.addr);
}