home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / reference / amiga_mail_vol2 / viii-31 / note.h < prev    next >
C/C++ Source or Header  |  1993-03-01  |  2KB  |  95 lines

  1. /*
  2. ** Note.h - Some generic external references
  3. */
  4. /* (c)  Copyright 1992-93 Commodore-Amiga, Inc.   All rights reserved. */
  5. /* The information contained herein is subject to change without    */
  6. /* notice, and is provided "as is" without warranty of any kind,    */
  7. /* either expressed or implied.  The entire risk as to the use of   */
  8. /* this information is assumed by the user.                         */
  9.  
  10. extern struct Library   *IntuitionBase,
  11.                         *SockBase;
  12.  
  13.  
  14. /*
  15. ** Amiga System Includes
  16. */
  17.  
  18. #include <exec/types.h>
  19. #include <exec/exec.h>
  20. #include <dos/dos.h>
  21. #include <dos/rdargs.h>
  22. #include <dos/dostags.h>
  23. #include <dos/dosextens.h>
  24. #include <intuition/intuition.h>
  25. #include <utility/tagitem.h>
  26.  
  27. /*
  28. ** Amiga System Prototypes
  29. */
  30.  
  31. #include <clib/exec_protos.h>
  32. #include <clib/dos_protos.h>
  33. #include <clib/intuition_protos.h>
  34.  
  35. /*
  36. ** socket.library Includes
  37. */
  38.  
  39. #include <sys/types.h>
  40. #include <sys/socket.h>
  41. #include <ss/socket.h>
  42. /* make sure you rename <ss/socket_pragmas.sas|manx>
  43. to <ss/socket_pragmas.h> */
  44. #include <ss/socket_pragmas.h>
  45. #include <netdb.h>
  46.  
  47. /*
  48. ** ...and some generic ANSI stuff
  49. */
  50.  
  51. #include <stdio.h>
  52. #include <string.h>
  53. #include <stddef.h>
  54. #include <stdarg.h>
  55. #include <stdlib.h>
  56. #include <errno.h>
  57.  
  58. /*
  59. ** The definition of the structure which is the message packet passed
  60. ** between the client and server.  This has been kept about as minimal
  61. ** as possible, but the buffers had to be designated that way to keep
  62. ** the code of the handler routines down in size.
  63. **
  64. ** The #define's give the valid types that may be in the nn_Code field
  65. ** of the NetNote packet.
  66. */
  67.  
  68. struct NetNote
  69. {
  70.     int     nn_Code;
  71.     int     nn_Retval;
  72.     char    nn_Text[200],
  73.             nn_Button[40];
  74. };
  75.  
  76. #define NN_MSG  0
  77. #define NN_ACK  1
  78. #define NN_ERR  2
  79.  
  80. /*
  81. ** This definition is used in both the client and server as the name any
  82. ** entries in the INET:DB/SERVICES file will be under.
  83. */
  84.  
  85. #define APPNAME "notes"
  86.  
  87. #ifdef LATTICE
  88. int CXBRK(void) { return(0); }  /* Disable Lattice CTRL/C handling */
  89. int chkabort(void) { return(0); }
  90. #endif
  91.  
  92. /*
  93. ** End of note.h
  94. */
  95.