Fandom

Wikihack

Source:SLASH'EM 0.0.7E7F2/nhlan.h

2,034pages on
this wiki
Add New Page
Talk0

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Below is the full text to nhlan.h from the source code of SLASH'EM 0.0.7E7F2. To link to a particular line, write [[SLASH'EM 0.0.7E7F2/nhlan.h#line123]], for example.

The latest source code for vanilla NetHack is at Source code.


The NetHack General Public License applies to screenshots, source code and other content from NetHack.
1.    /*	SCCS Id: @(#)nhlan.h	3.4	1997/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*/

Also on Fandom

Random Wiki