| 2831 | } |
| 2832 | |
| 2833 | void sendiplist(int receiver, int cn) |
| 2834 | { |
| 2835 | if(!valid_client(receiver)) return; |
| 2836 | packetbuf p(MAXTRANS, ENET_PACKET_FLAG_RELIABLE); |
| 2837 | putint(p, SV_IPLIST); |
| 2838 | loopv(clients) if(valid_client(i) && clients[i]->type == ST_TCPIP && i != receiver |
| 2839 | && (clients[i]->clientnum == cn || cn == -1)) |
| 2840 | { |
| 2841 | putint(p, i); |
| 2842 | putint(p, clients[i]->ip); |
| 2843 | } |
| 2844 | putint(p, -1); |
| 2845 | sendpacket(receiver, 1, p.finalize()); |
| 2846 | } |
| 2847 | |
| 2848 | void sendresume(client &c, bool broadcast) |
| 2849 | { |
no test coverage detected