| // MorgenGrauen MUDlib |
| // |
| // udp.h -- Definitionen fuers udp |
| // |
| // $Id: udp.h 9503 2016-02-23 18:27:45Z Zesstra $ |
| |
| #ifndef _UDP_H |
| #define _UDP_H |
| |
| /* --- User Configuration. --- */ |
| |
| #include "/secure/config.h" |
| #include <driver_info.h> |
| |
| #define INETD "/secure/inetd" |
| #define UDP_CMD_DIR "/secure/udp/" |
| |
| #if !defined(__TESTMUD__) && MUDNAME=="MorgenGrauen" |
| # define HOST_FILE "/etc/INETD_HOSTS" |
| #else |
| # define HOST_FILE "/etc/INETD_HOSTS.TESTMUD" |
| #endif |
| |
| #define INETD_LOG_FILE "INETD" |
| |
| #define REPLY_TIME_OUT 12 |
| #define RETRIES 2 |
| |
| /* #define LOCAL_NAME SECURITY->get_mud_name() // CD */ |
| #if (__HOST_NAME__==MUDHOST) |
| #define LOCAL_NAME MUDNAME |
| #else |
| #define LOCAL_NAME "MG-Test-"+__HOST_NAME__ |
| #endif |
| |
| /* #define LOCAL_UDP_PORT SECURITY->do_debug("udp_port"); // CD */ |
| #define LOCAL_UDP_PORT driver_info(DI_UDP_PORT) |
| |
| /* If you are running another intermud system concurrently and there is a |
| * clash with the udp.h filename, rename the old udp.h file as appropriate |
| * and include this line. */ |
| /* #include <cdudp.h> // CD */ |
| |
| /* Include these definitions for CD muds. */ |
| /* #define CDLIB */ |
| /* #define CD_UDP "/d/Standard/obj/udp" */ |
| |
| /* --- End of config. --- */ |
| |
| #define INETD_DIAGNOSTICS |
| |
| #define INETD_VERSION "0.7a" |
| |
| /* --- Standard header macros. --- */ |
| |
| #define RECIPIENT "RCPNT" |
| #define REQUEST "REQ" |
| #define SENDER "SND" |
| /* The DATA field should be used to store the main body of any packet. */ |
| #define DATA "DATA" |
| |
| /* These headers are reserved for system use only. */ |
| #define HOST "HST" |
| #define ID "ID" |
| #ifndef NAME |
| #define NAME "NAME" |
| #endif |
| #define PACKET "PKT" |
| #define UDP_PORT "UDP" |
| #define SYSTEM "SYS" |
| |
| /* Reserved headers for diagnostics. */ |
| #define PACKET_LOSS "PKT_LOSS" |
| #define RESPONSE_TIME "TIME" |
| |
| /* --- Standard REQUEST macros. --- */ |
| |
| #define PING "ping" |
| #define QUERY "query" |
| #define REPLY "reply" |
| |
| /* --- Standard SYSTEM macros. --- */ |
| |
| #define FAILED "F" |
| #define REPEAT "R" |
| #define TIME_OUT "TO" |
| #define UNAVAILABLE "U" |
| |
| /* --- Index macros for host arrays. --- */ |
| |
| #define HOST_NAME 0 |
| #define HOST_IP 1 |
| #define HOST_UDP_PORT 2 |
| #define LOCAL_COMMANDS 3 |
| #define HOST_COMMANDS 4 |
| #define HOST_STATUS 5 |
| |
| #endif |