2007-01-29 01:18:16 +00:00
|
|
|
// mmulti.h
|
|
|
|
|
|
|
|
#ifndef __mmulti_h__
|
|
|
|
#define __mmulti_h__
|
|
|
|
|
|
|
|
#define MAXMULTIPLAYERS 16
|
|
|
|
|
2009-01-09 09:29:17 +00:00
|
|
|
extern int32_t myconnectindex, numplayers;
|
|
|
|
extern int32_t connecthead, connectpoint2[MAXMULTIPLAYERS];
|
2007-01-29 01:18:16 +00:00
|
|
|
extern char syncstate;
|
2009-01-09 09:29:17 +00:00
|
|
|
extern int32_t natfree; //Addfaz NatFree
|
2007-01-29 01:18:16 +00:00
|
|
|
|
2009-01-09 09:29:17 +00:00
|
|
|
int32_t initmultiplayersparms(int32_t argc, char **argv);
|
|
|
|
int32_t initmultiplayerscycle(void);
|
2007-01-29 01:18:16 +00:00
|
|
|
|
2009-01-09 09:29:17 +00:00
|
|
|
void mmulti_initmultiplayers(int32_t argc, char **argv);
|
|
|
|
void mmulti_setpackettimeout(int32_t datimeoutcount, int32_t daresendagaincount);
|
|
|
|
void mmulti_uninitmultiplayers(void);
|
2009-01-10 07:38:50 +00:00
|
|
|
void mmulti_sendlogon(void);
|
|
|
|
void mmulti_sendlogoff(void);
|
|
|
|
int32_t mmulti_getoutputcirclesize(void);
|
2009-01-09 09:29:17 +00:00
|
|
|
void mmulti_sendpacket(int32_t other, char *bufptr, int32_t messleng);
|
|
|
|
int32_t mmulti_getpacket(int32_t *other, char *bufptr);
|
|
|
|
void mmulti_flushpackets(void);
|
2009-01-10 07:38:50 +00:00
|
|
|
void mmulti_generic(int32_t other, char *bufptr, int32_t messleng, int32_t command);
|
2009-01-09 09:29:17 +00:00
|
|
|
int32_t isvalidipaddress(char *st);
|
2007-01-29 01:18:16 +00:00
|
|
|
|
|
|
|
void nfIncCP(void); //Addfaz NatFree
|
2009-01-09 09:29:17 +00:00
|
|
|
int32_t nfCheckHF (int32_t other); //Addfaz NatFree
|
|
|
|
int32_t nfCheckCP(int32_t other); //Addfaz NatFree
|
2007-01-29 01:18:16 +00:00
|
|
|
|
|
|
|
#endif // __mmulti_h__
|
|
|
|
|