Adding d1x network code
[btb/d2x.git] / main / ipclienc.c
1 /*
2  * $Source: /cvs/cvsroot/d2x/main/ipclienc.c,v $
3  * $Revision: 1.1 $
4  * $Author: bradleyb $
5  * $Date: 2002-02-06 09:22:41 $
6  *
7  * ipclienc.h - interface from cpp to c funcs
8  * added 2000/02/07 Matt Mueller
9  *
10  * $Log: not supported by cvs2svn $
11  *
12  */
13
14 #ifdef HAVE_CONFIG_H
15 #include <conf.h>
16 #endif
17
18 #include "ip_basec.h"
19 #include "ipx.h"
20 #include "network.h"
21
22 void ip_sendtoall(char *buf,int len)
23 {
24         int j;
25         for (j=0;j<MAX_PLAYERS;j++){
26                 if (NetPlayers.players[j].connected && j!=Player_num){
27                         ip_sendtoid(NetPlayers.players[j].network.ipx.node,buf,len);
28                 }
29         }
30 }
31
32 int get_MAX_PLAYERS(void){return MAX_PLAYERS;}
33 int get_Netgame_player_connected(int pn){return NetPlayers.players[pn].connected;}
34 ubyte * get_Netgame_player_node(int pn){return NetPlayers.players[pn].network.ipx.node;}
35