📄 mserv.h
字号:
// Emacs style mode select -*- C++ -*- //-----------------------------------------------------------------------------//// $Id: mserv.h,v 1.9 2000/10/22 00:20:53 hurdler Exp $//// Copyright (C) 1998-2000 by DooM Legacy Team.//// This program is free software; you can redistribute it and/or// modify it under the terms of the GNU General Public License// as published by the Free Software Foundation; either version 2// of the License, or (at your option) any later version.//// This program is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the// GNU General Public License for more details.////// $Log: mserv.h,v $// Revision 1.9 2000/10/22 00:20:53 hurdler// Updated for the latest master server code//// Revision 1.8 2000/10/17 10:09:27 hurdler// Update master server code for easy connect from menu//// Revision 1.7 2000/10/08 13:30:01 bpereira// no message//// Revision 1.6 2000/10/01 15:20:23 hurdler// Add private server//// Revision 1.5 2000/09/08 22:28:30 hurdler// merge masterserver_ip/port in one cvar, add -private//// Revision 1.4 2000/09/02 15:38:24 hurdler// Add master server to menus (temporaray)//// Revision 1.3 2000/08/29 15:53:47 hurdler// Remove master server connect timeout on LAN (not connected to Internet)//// Revision 1.2 2000/08/16 17:21:50 hurdler// update master server code (bis)//// Revision 1.1 2000/08/16 14:04:57 hurdler// add master server code//////// DESCRIPTION:// Header file for the master server routines////-----------------------------------------------------------------------------#ifndef _MSERV_H_#define _MSERV_H_// I want that structure 8 bytes aligned (current size is 80)typedef struct{ char header[16]; // information such as password char ip[16]; char port[8]; char name[32]; char version[8]; // format is: x.yy.z (like 1.30.2 or 1.31)} msg_server_t;// ================================ GLOBALS ===============================extern consvar_t cv_masterserver;extern consvar_t cv_servername;extern consvar_t cv_internetserver;char *GetMasterServerPort(void);char *GetMasterServerIP(void);void RegisterServer(int, int);void UnregisterServer(void);void SendPingToMasterServer(void);msg_server_t *GetShortServersList(void);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -