From 76b494522b55741469fa0cd435b3a20ae4f3e999 Mon Sep 17 00:00:00 2001 From: jwalz Date: Sat, 5 Jan 2002 21:05:48 +0000 Subject: [PATCH] *** empty log message *** --- include/nhlan.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 include/nhlan.h diff --git a/include/nhlan.h b/include/nhlan.h new file mode 100644 index 000000000..679021455 --- /dev/null +++ b/include/nhlan.h @@ -0,0 +1,48 @@ +/* SCCS Id: @(#)nhlan.h 3.3 97/04/12 */ +/* Copyright (c) Michael Allison, 1997 */ +/* NetHack may be freely redistributed. See license for details. */ + +#ifndef NHLAN_H +#define NHLAN_H +/* + * Here are the LAN features currently implemented: + * LAN_MAIL Mail facility allowing receipt and + * reading of mail. + * LAN_SHARED_BONES Allows bones files to be stored on a + * network share. (Does NOT imply compatibiliy + * between unlike platforms) + */ + +# ifdef LAN_FEATURES +# ifdef LAN_MAIL +#define MAIL +#ifndef WIN32 +#define MAILCKFREQ 50 +#else +/* + * WIN32 port does the real mail lookups in a separate thread + * and the NetHack core code really just checks a flag, + * so that part of it can be done more often. The throttle + * for how often the mail thread should contact the mail + * system is controlled by MAILTHREADFREQ and is expressed + * in milliseconds. + */ +#define MAILCKFREQ 5 +#define MAILTHREADFREQ 50000 +#endif + +#ifndef MAX_BODY_SIZE +#define MAX_BODY_SIZE 1024 +#endif + +struct lan_mail_struct { + char sender[120]; + char subject[120]; + boolean body_in_ram; /* TRUE means body in memory not file */ + char filename[_MAX_PATH]; + char body[MAX_BODY_SIZE]; +}; +# endif + +# endif /*LAN_FEATURES*/ +#endif /*NHLAN_H*/