Subversion Repositories eduke32

Rev

Rev 8661 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7139 hendricks2 1
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
2
// Ken Silverman's official web site: "http://www.advsys.net/ken"
3
// See the included license file "BUILDLIC.TXT" for license info.
4
//
5
// This file has been modified from Ken Silverman's original release
6
// by Jonathon Fowler (jf@jonof.id.au)
7
// by the EDuke32 team (development@voidpoint.com)
4555 hendricks2 8
 
8661 ny00123 9
#ifndef mmulti_h
10
#define mmulti_h
4555 hendricks2 11
 
8669 ny00123 12
#include "build.h"
4555 hendricks2 13
 
8661 ny00123 14
#define MMULTI_MODE_MS  0
15
#define MMULTI_MODE_P2P 1
16
 
17
extern int myconnectindex, numplayers, networkmode;
8669 ny00123 18
extern int connecthead, connectpoint2[MAXPLAYERS];
4555 hendricks2 19
extern unsigned char syncstate;
20
 
8661 ny00123 21
void initsingleplayers(void);
22
void initmultiplayers(int argc, char const * const argv[]);
23
int initmultiplayersparms(int argc, char const * const argv[]);
4555 hendricks2 24
int initmultiplayerscycle(void);
8324 hendricks2 25
 
4555 hendricks2 26
void setpackettimeout(int datimeoutcount, int daresendagaincount);
27
void uninitmultiplayers(void);
28
void sendlogon(void);
29
void sendlogoff(void);
30
int getoutputcirclesize(void);
31
void setsocket(int newsocket);
8661 ny00123 32
void sendpacket(int other, unsigned char *bufptr, int messleng);
33
int getpacket(int *other, unsigned char *bufptr);
4555 hendricks2 34
void flushpackets(void);
8661 ny00123 35
void genericmultifunction(int other, unsigned char *bufptr, int messleng, int command);
4555 hendricks2 36
 
8661 ny00123 37
#endif  // mmulti_h
4555 hendricks2 38