2007-01-29 01:18:16 +00:00
|
|
|
// mmulti.h
|
|
|
|
|
|
|
|
#ifndef __mmulti_h__
|
|
|
|
#define __mmulti_h__
|
|
|
|
|
|
|
|
#define MAXMULTIPLAYERS 16
|
|
|
|
|
2007-12-12 17:42:14 +00:00
|
|
|
extern int myconnectindex, numplayers;
|
|
|
|
extern int connecthead, connectpoint2[MAXMULTIPLAYERS];
|
2007-01-29 01:18:16 +00:00
|
|
|
extern char syncstate;
|
|
|
|
extern int natfree; //Addfaz NatFree
|
|
|
|
|
2007-12-12 17:42:14 +00:00
|
|
|
int initmultiplayersparms(int argc, char **argv);
|
|
|
|
int initmultiplayerscycle(void);
|
2007-01-29 01:18:16 +00:00
|
|
|
|
2008-11-11 14:48:59 +00:00
|
|
|
void initmultiplayers(int argc, char **argv);
|
2007-12-12 17:42:14 +00:00
|
|
|
void setpackettimeout(int datimeoutcount, int daresendagaincount);
|
2007-01-29 01:18:16 +00:00
|
|
|
void uninitmultiplayers(void);
|
|
|
|
void sendlogon(void);
|
|
|
|
void sendlogoff(void);
|
2007-12-12 17:42:14 +00:00
|
|
|
int getoutputcirclesize(void);
|
2007-01-29 01:18:16 +00:00
|
|
|
void setsocket(short newsocket);
|
2007-12-12 17:42:14 +00:00
|
|
|
void sendpacket(int other, char *bufptr, int messleng);
|
|
|
|
int getpacket(int *other, char *bufptr);
|
2007-01-29 01:18:16 +00:00
|
|
|
void flushpackets(void);
|
2007-12-12 17:42:14 +00:00
|
|
|
void genericmultifunction(int other, char *bufptr, int messleng, int command);
|
|
|
|
int isvalidipaddress(char *st);
|
2007-01-29 01:18:16 +00:00
|
|
|
|
|
|
|
void nfIncCP(void); //Addfaz NatFree
|
2007-12-12 17:42:14 +00:00
|
|
|
int nfCheckHF (int other); //Addfaz NatFree
|
|
|
|
int nfCheckCP(int other); //Addfaz NatFree
|
2007-01-29 01:18:16 +00:00
|
|
|
|
|
|
|
#endif // __mmulti_h__
|
|
|
|
|