locate_a.c
来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· C语言 代码 · 共 38 行
C
38 行
// /adm/daemons/network/dns_aux/locate_a.c// from the TMI-2 Mudlib// the locate_a for the UDP locate function// created by Descartes of Borg 931017#include <net/macros.h>inherit F_CLEAN_UP;void incoming_request(mapping info) { object who; if(!info["NAME"] || !info["PORTUDP"]) return; if(!info["ASKWIZ"] || !(who = find_player(lower_case(info["ASKWIZ"])))) return; switch(info["LOCATE"]) { case "NO": return; case "YES": message("info", sprintf("LOCATE: %s was just located on %s.\n", capitalize(info["TARGET"]), nntoh(info["NAME"])), who); break; default: /* log bad answers here if you like */ } return;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?