2006-04-13 20:47:06 +00:00
|
|
|
// mmulti.h
|
|
|
|
|
|
|
|
#ifndef __mmulti_h__
|
|
|
|
#define __mmulti_h__
|
|
|
|
|
|
|
|
#define MAXMULTIPLAYERS 16
|
|
|
|
|
|
|
|
extern long myconnectindex, numplayers;
|
|
|
|
extern long connecthead, connectpoint2[MAXMULTIPLAYERS];
|
|
|
|
extern char syncstate;
|
2006-05-23 23:43:18 +00:00
|
|
|
extern int natfree; //Addfaz NatFree
|
2006-04-13 20:47:06 +00:00
|
|
|
|
|
|
|
long initmultiplayersparms(long argc, char **argv);
|
|
|
|
long initmultiplayerscycle(void);
|
|
|
|
|
|
|
|
void initmultiplayers(long argc, char **argv, char damultioption, char dacomrateoption, char dapriority);
|
|
|
|
void setpackettimeout(long datimeoutcount, long daresendagaincount);
|
|
|
|
void uninitmultiplayers(void);
|
|
|
|
void sendlogon(void);
|
|
|
|
void sendlogoff(void);
|
|
|
|
long getoutputcirclesize(void);
|
|
|
|
void setsocket(short newsocket);
|
|
|
|
void sendpacket(long other, char *bufptr, long messleng);
|
|
|
|
long getpacket(long *other, char *bufptr);
|
|
|
|
void flushpackets(void);
|
|
|
|
void genericmultifunction(long other, char *bufptr, long messleng, long command);
|
|
|
|
long isvalidipaddress(char *st);
|
|
|
|
|
2006-05-23 23:43:18 +00:00
|
|
|
void nfIncCP(void); //Addfaz NatFree
|
|
|
|
int nfCheckHF (long other); //Addfaz NatFree
|
|
|
|
int nfCheckCP(long other); //Addfaz NatFree
|
|
|
|
|
2006-04-13 20:47:06 +00:00
|
|
|
#endif // __mmulti_h__
|
|
|
|
|