Source:NetHack 3.4.3/include/nhlan.h

From NetHackWiki
Revision as of 19:18, 31 January 2011 by Paxedbot (talk | contribs) (moved Source:Nhlan.h to Source:NetHack 3.4.3/include/nhlan.h: Moving src to subdirs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Below is the full text to include/nhlan.h from NetHack 3.4.3. To link to a particular line, write [[nhlan.h#line123]], for example.

/*	SCCS Id: @(#)nhlan.h	3.4	1997/04/12	*/
/* Copyright (c) Michael Allison, 1997			*/
/* NetHack may be freely redistributed.  See license for details. */

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

#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*/