File: nhlan.h

package info (click to toggle)
nethack 3.4.3-10.6
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 13,644 kB
  • ctags: 16,957
  • sloc: ansic: 196,792; cpp: 7,083; sh: 6,887; yacc: 2,005; lex: 377; makefile: 112; awk: 89; sed: 11
file content (48 lines) | stat: -rw-r--r-- 1,229 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*	SCCS Id: @(#)nhlan.h	3.4	1997/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*/