1 | /* SCCS Id: @(#)nhlan.h 3.3 97/04/12 */
2 | /* Copyright (c) Michael Allison, 1997 */
3 | /* NetHack may be freely redistributed. See license for details. */
4 |
5 | #ifndef NHLAN_H
6 | #define NHLAN_H
7 | /*
8 | * Here are the LAN features currently implemented:
9 | * LAN_MAIL Mail facility allowing receipt and
10 | * reading of mail.
11 | * LAN_SHARED_BONES Allows bones files to be stored on a
12 | * network share. (Does NOT imply compatibiliy
13 | * between unlike platforms)
14 | */
15 |
16 | # ifdef LAN_FEATURES
17 | # ifdef LAN_MAIL
18 | #define MAIL
19 | #ifndef WIN32
20 | #define MAILCKFREQ 50
21 | #else
22 | /*
23 | * WIN32 port does the real mail lookups in a separate thread
24 | * and the NetHack core code really just checks a flag,
25 | * so that part of it can be done more often. The throttle
26 | * for how often the mail thread should contact the mail
27 | * system is controlled by MAILTHREADFREQ and is expressed
28 | * in milliseconds.
29 | */
30 | #define MAILCKFREQ 5
31 | #define MAILTHREADFREQ 50000
32 | #endif
33 |
34 | #ifndef MAX_BODY_SIZE
35 | #define MAX_BODY_SIZE 1024
36 | #endif
37 |
38 | struct lan_mail_struct {
39 | char sender[120];
40 | char subject[120];
41 | boolean body_in_ram; /* TRUE means body in memory not file */
42 | char filename[_MAX_PATH];
43 | char body[MAX_BODY_SIZE];
44 | };
45 | # endif
46 |
47 | # endif /*LAN_FEATURES*/
48 | #endif /*NHLAN_H*/