Source:NetHack 3.4.3/include/nhlan.h

From NetHackWiki
Jump to: navigation, 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.

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

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.

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