2018-11-05 07:28:01 +00:00
|
|
|
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
|
|
|
|
// Ken Silverman's official web site: "http://www.advsys.net/ken"
|
|
|
|
// See the included license file "BUILDLIC.TXT" for license info.
|
|
|
|
//
|
|
|
|
// This file has been modified from Ken Silverman's original release
|
|
|
|
// by Jonathon Fowler (jf@jonof.id.au)
|
|
|
|
// by the EDuke32 team (development@voidpoint.com)
|
2014-07-24 14:01:44 +00:00
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#ifndef mmulti_h_
|
|
|
|
#define mmulti_h_
|
2014-07-24 14:01:44 +00:00
|
|
|
|
|
|
|
#define MAXMULTIPLAYERS 16
|
|
|
|
|
|
|
|
extern int myconnectindex, numplayers;
|
|
|
|
extern int connecthead, connectpoint2[MAXMULTIPLAYERS];
|
|
|
|
extern unsigned char syncstate;
|
|
|
|
|
2018-08-09 16:06:55 +00:00
|
|
|
#if 0
|
|
|
|
int initmultiplayersparms(int argc, char const * const * argv);
|
2014-07-24 14:01:44 +00:00
|
|
|
int initmultiplayerscycle(void);
|
2018-08-09 16:06:55 +00:00
|
|
|
void initmultiplayers(int argc, char const * const * argv, unsigned char damultioption, unsigned char dacomrateoption, unsigned char dapriority);
|
2019-04-08 06:27:05 +00:00
|
|
|
#else
|
|
|
|
static inline int initmultiplayersparms(int argc, char const * const * argv)
|
|
|
|
{
|
|
|
|
UNREFERENCED_PARAMETER(argc);
|
|
|
|
UNREFERENCED_PARAMETER(argv);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
static inline int initmultiplayerscycle(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
static inline void initmultiplayers(int argc, char const * const * argv, unsigned char damultioption, unsigned char dacomrateoption, unsigned char dapriority)
|
|
|
|
{
|
|
|
|
UNREFERENCED_PARAMETER(argc);
|
|
|
|
UNREFERENCED_PARAMETER(argv);
|
|
|
|
UNREFERENCED_PARAMETER(damultioption);
|
|
|
|
UNREFERENCED_PARAMETER(dacomrateoption);
|
|
|
|
UNREFERENCED_PARAMETER(dapriority);
|
|
|
|
}
|
2018-08-09 16:06:55 +00:00
|
|
|
#endif
|
2014-07-24 14:01:44 +00:00
|
|
|
|
|
|
|
void setpackettimeout(int datimeoutcount, int daresendagaincount);
|
|
|
|
void uninitmultiplayers(void);
|
|
|
|
void sendlogon(void);
|
|
|
|
void sendlogoff(void);
|
|
|
|
int getoutputcirclesize(void);
|
|
|
|
void setsocket(int newsocket);
|
2018-10-16 06:09:20 +00:00
|
|
|
void sendpacket(int other, const unsigned char *bufptr, int messleng);
|
|
|
|
int getpacket(const int *other, const unsigned char *bufptr);
|
2014-07-24 14:01:44 +00:00
|
|
|
void flushpackets(void);
|
2018-10-16 06:09:20 +00:00
|
|
|
void genericmultifunction(int other, const unsigned char *bufptr, int messleng, int command);
|
2014-07-24 14:01:44 +00:00
|
|
|
int isvalidipaddress(const char *st);
|
|
|
|
|
2014-11-22 12:32:56 +00:00
|
|
|
#endif // mmulti_h_
|
2014-07-24 14:01:44 +00:00
|
|
|
|