📄 d_netfil.h
字号:
// Emacs style mode select -*- C++ -*- //-----------------------------------------------------------------------------//// $Id: d_netfil.h,v 1.6 2001/01/25 22:15:41 bpereira 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: d_netfil.h,v $// Revision 1.6 2001/01/25 22:15:41 bpereira// added heretic support//// Revision 1.5 2000/10/08 13:30:00 bpereira// no message//// Revision 1.4 2000/04/16 18:38:07 bpereira// no message//// Revision 1.3 2000/02/27 00:42:10 hurdler// fix CR+LF problem//// Revision 1.2 2000/02/26 00:28:42 hurdler// Mostly bug fix (see borislog.txt 23-2-2000, 24-2-2000)////// DESCRIPTION://////-----------------------------------------------------------------------------typedef enum { SF_FILE = 0, SF_Z_RAM , SF_RAM , SF_NOFREERAM} freemethode_t;typedef enum { FS_NOTFOUND, FS_FOUND, FS_FOUNDWRONGDATE, FS_REQUESTED, FS_DOWNLOADING, FS_OPEN // is opened and used in w_wad} filestatus_t;typedef struct { char filename[MAX_WADPATH]; time_t timestamp; // used only for download FILE *phandle; ULONG currentsize; ULONG totalsize; filestatus_t status; // the value returned by recsearch} fileneeded_t;extern int fileneedednum;extern fileneeded_t fileneeded[MAX_WADFILES];void D_NetFileInit(void);char *PutFileNeeded(void);void D_ParseFileneeded(boolean notimecheck, int fileneedednum_parm, char *fileneededstr);void CL_PrepareDownloadSaveGame(const char *tmpsave);// check file list in wadfiles return 0 when a file is not found // 1 if all file are found // 2 if you cannot connect (different wad version or // no enought space to download files)int CL_CheckFiles(void);void CL_LoadServerFiles(void);void SendFile(int node,char *filename, char fileid);void SendRam(int node,byte *data, ULONG size,freemethode_t freemethode, char fileid);void FiletxTicker(void);void Got_Filetxpak(void);boolean SendRequestFile(void);void Got_RequestFilePak(int node);void AbortSendFiles(int node);void CloseNetFile(void);boolean fileexist(char *filename,time_t time);// search a file in subtree, return true if foundfilestatus_t recsearch(char *filename,time_t timestamp,boolean changestring);void nameonly(char *s);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -