home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 2 / amigaformatcd02.iso / comms / netsoftware / nethandler.lha / NetHandler / server / server.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-16  |  3.2 KB  |  88 lines

  1. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  2. /* |_o_o|\\ Copyright (c) 1987 The Software Distillery.  All Rights Reserved */
  3. /* |. o.| || This program may not be distributed without the permission of   */
  4. /* | .  | || the authors:                                          BBS:      */
  5. /* | o  | ||   John Toebes     Dave Baker     John Mainwaring                */
  6. /* |  . |//                                                                  */
  7. /* ======                                                                    */
  8. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  9.  
  10. #include "netcomm.h"
  11.  
  12. void checkdebug U_ARGS((void));
  13.  
  14. #if DEBUG
  15. #define BUGCHECK() checkdebug();
  16. #define BUGINIT()  initdebug(NULL);
  17. #else
  18. #define BUGCHECK()
  19. #define BUGINIT()
  20. #endif
  21.  
  22. typedef struct global
  23.    {
  24.    struct NetGlobal      n;          /* Globals in common with handler     */
  25.    struct RPacket       RP;          /* Data area for remote node          */
  26.    struct DosPacket     *pkt;        /* the packet we are processing       */
  27.    struct StandardPacket *stdpkt;    /* Packet to send to local handlers   */
  28.    struct MsgPort       *dosport;    /* msgport for DOS device to talk to  */
  29.    struct RPacket       *rpptr;      /* Points to msg for singlemachine v  */
  30.    char                 *fib;        /* For use by RmtExamine/RmtExNext    */
  31.    struct InfoData      *infodata;   /* For use by RmtInfo                 */
  32.    LONG   rootlock;                  /* Lock on root of ROOT:              */
  33.    }* GLOBAL;
  34.  
  35. /* main.c */
  36. void RmtSetDebug      U_ARGS((GLOBAL, struct DosPacket *));
  37.  
  38. /* file.c */
  39. void RmtDelete        U_ARGS((GLOBAL, struct DosPacket *));
  40. void RmtRename        U_ARGS((GLOBAL, struct DosPacket *));
  41. void RmtSetComment    U_ARGS((GLOBAL, struct DosPacket *));
  42. void RmtSetProtection U_ARGS((GLOBAL, struct DosPacket *));
  43.  
  44. /* io.c */
  45. void RmtFindwrite U_ARGS((GLOBAL, struct DosPacket *));
  46. #define RmtFindin RmtFindWrite
  47. #define RmtFindout RmtFindWrite
  48. void RmtEnd       U_ARGS((GLOBAL, struct DosPacket *));
  49. void RmtRead      U_ARGS((GLOBAL, struct DosPacket *));
  50. void RmtWrite     U_ARGS((GLOBAL, struct DosPacket *));
  51. void RmtSeek      U_ARGS((GLOBAL, struct DosPacket *));
  52.  
  53. /* dir.c */
  54. void RmtCreateDir U_ARGS((GLOBAL, struct DosPacket *));
  55. void RmtExamine   U_ARGS((GLOBAL, struct DosPacket *));
  56. #define RmtExNext RmtExamine
  57. void RmtParent    U_ARGS((GLOBAL, struct DosPacket *));
  58.  
  59. /* lock.c */
  60. void RmtLock    U_ARGS((GLOBAL, struct DosPacket *));
  61. void RmtDupLock U_ARGS((GLOBAL, struct DosPacket *));
  62. void RmtUnLock  U_ARGS((GLOBAL, struct DosPacket *));
  63.  
  64. /* volume.c */
  65. void RmtInfo       U_ARGS((GLOBAL, struct DosPacket *));
  66. void RmtNetKludge  U_ARGS((GLOBAL, struct DosPacket *));
  67.  
  68. /* device.c */
  69. int InitDevice U_ARGS((GLOBAL));
  70. int TermDevice U_ARGS((GLOBAL));
  71. void RmtDie    U_ARGS((GLOBAL, struct DosPacket *));
  72.  
  73. /* Dispatch.c */
  74. void Dispatch    U_ARGS((GLOBAL));
  75.  
  76. /* inhibit.c */
  77. int inhibit  U_ARGS((struct MsgPort *, long));
  78. long sendpkt U_ARGS((struct MsgPort *, long, long*, long));
  79.  
  80. /* volume.c */
  81. void RmtInfo       U_ARGS((GLOBAL, struct DosPacket *));
  82.  
  83. /* net#?.c */
  84. int InitRDevice    U_ARGS((GLOBAL));
  85. int TermRDevice    U_ARGS((GLOBAL));
  86.  
  87. #include "/proto.h"
  88.