⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 multi_tcpip.c

📁 小型游戏引擎
💻 C
字号:
/* * The original KenBuild networking code was just an interface between *  COMit and BUILD. This is useless to us, so here are the functions *  that KenBuild needs implemented. Have fun.  --ryan. *//* * "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 IS NOT A PART OF Ken Silverman's original release */#include "build.h"short numplayers = 0, myconnectindex = 0;short connecthead, connectpoint2[MAXPLAYERS];long syncbufleng, outbufindex[128], outcnt;long myconnectnum, otherconnectnum, mypriority;long crctable[256];char syncstate = 0;long connectnum[MAXPLAYERS];void initmultiplayers(char damultioption, char dacomrateoption, char dapriority){	long i;	connecthead = 0;	for(i=MAXPLAYERS-1;i>=0;i--)		connectpoint2[i] = -1, connectnum[i] = 0x7fffffff;	numplayers = 1;} /* initmultiplayers */void uninitmultiplayers(){} /* uninitmultiplayers */void sendlogon(void){} /* sendlogon */void sendlogoff(void){} /* sendlogoff */int getoutputcirclesize(void){    return(0);} /* getoutputcirclesize */void sendpacket (short otherconnectindex, char *bufptr, short messleng){} /* sendpacket */short getpacket (short *other, char *bufptr){    return(0);} /* getpacket *//* end of multi_tcpip.c ... */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -