services.h

来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· C头文件 代码 · 共 34 行

H
34
字号
// 神话世界·西游记·版本4.50/* <SecCrypt CPL V3R05> */ /* * This file contains information about the standard services used by * various parts of the mudlib, particularly the network communication * daemons such as finger and tell. */#ifndef __NET__SERVICES_H#define __NET__SERVICES_H/* These are the protocol types for the services */#define SVC_UNKNOWN    0#define SVC_KNOWN      1#define SVC_TCP        2#define SVC_NO_TCP     4#define SVC_UDP        8#define SVC_NO_UDP    16/* These macros control which ports the services run on. */#define SRVC_PORT_INETD(x)  (x)+5#define SRVC_PORT_UDP(x)   (x)+4/* These are the levels of tcp support available */#define TCP_NONE  "none"#define TCP_SOME  "some"#define TCP_ALL   "all"#define TCP_ONLY  "only"#endif //__NET__SERVICES_H

⌨️ 快捷键说明

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