home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c004 / 3.ddi / NOVELL / CTCOMM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-04-18  |  4.1 KB  |  171 lines

  1. /*
  2.  *    Novell VAP Server Definitions
  3.  *
  4.  *    This program is the CONFIDENTIAL and PROPRIETARY property 
  5.  *    of FairCom(R) Corporation. Any unauthorized use, reproduction or
  6.  *    transfer of this program is strictly prohibited.
  7.  *
  8.  *      Copyright (c) 1987, 1988, 1989 FairCom Corporation
  9.  *    (Subject to limited distribution and
  10.  *     restricted disclosure only.)
  11.  *    *** ALL RIGHTS RESERVED ***
  12.  *
  13.  *    4006 West Broadway
  14.  *    Columbia, MO 65203
  15.  *
  16.  *
  17.  *    c-tree(R)    Version 4.3
  18.  *            Release C
  19.  *            February 7, 1989 17:30
  20.  *
  21.  */
  22.  
  23. /*
  24.  * The following defines specifiy the default maximums. They may be over-
  25.  * ridden on the server command line.  The server command line is
  26.  * controlled in function getsenv() [found in CTSRVE.C].
  27.  */
  28.  
  29. #define CTS_MAXSMSG    534    /* maximum server message size        */
  30. #define CTS_MAXUSR    16    /* maximum number of users        */
  31. #define CTS_MAXFIL    200    /* maximum number of files        */
  32. #define CTS_NODSEC    4     /* number of node sectors        */
  33. #define CTS_BUFFER    32    /* number of index buffers        */
  34. #define CTS_MAXLOK    128    /* maximum number of record ct_locks    */
  35. #define CTS_DOWN    4    /* shut down tries + 1            */
  36. #define CTS_KEYOPS    (2 * MAX_DAT_KEY)
  37.                 /* maximum combined index operations    */
  38.  
  39. #define NO_RQST        8    /* no request for server        */
  40.  
  41. typedef struct message {/* message header structure            */
  42.     POINTER    mpntr;    /* file position (byte offset)            */
  43.     VRLEN    mvlen;    /* variable length count            */
  44.     COUNT    musrn,    /* user number                    */
  45.         mfiln,    /* c-tree file number                */
  46.         mfunc,    /* function number                */
  47.         mdlen,    /* byte count for mdata buffer            */
  48.         merrn,    /* c-tree error code                */
  49.         mretc,    /* return code                    */
  50.         mseqn;    /* sequence number and/or misc COUNT parm    */
  51.     } MESSAGE;
  52.  
  53. typedef struct fileparm {
  54.     TEXT    fpnam[MAX_NAME];    /* file name            */
  55.     UCOUNT    fplen,            /* length            */
  56.         fpxtd;            /* extension chunk size        */
  57.     COUNT    fptyp,            /* key type            */
  58.         fpdup,            /* duplicate flag        */
  59.         fpmem,            /* index member            */
  60.         fpmod;            /* file mode            */
  61.     } FILEPARM;
  62.  
  63. typedef struct {
  64.     COUNT    spns;
  65.     COUNT    spbf;
  66.     UCOUNT    spsz;
  67.     COUNT    splk;
  68.     COUNT    spky;
  69.     } SRVPRM;
  70.  
  71. typedef struct {
  72.     LONG    srqsts,
  73.         susers,
  74.         strans,
  75.         scts_wl,
  76.         scts_rl,
  77.         scts_ul,
  78.         sredo,
  79.         ssets,
  80.         swaks,
  81.         suwaks,
  82.         sretry,
  83.         shtdwn;
  84. } SSTATUS;
  85.  
  86. /* Function Numbers */
  87.  
  88. #define FN_ADDKEY    1
  89. #define FN_DELCHK    2
  90. #define FN_DELBLD    3
  91. #define FN_CLSFIL    4
  92. #define FN_INTREE    5
  93. #define FN_CREMEM    6
  94. #define FN_DELFIL    7
  95.  
  96. #define FN_FOPNCRE    10
  97. #define FN_OPNFIL    11
  98.  
  99. #define FN_CREDAT    21
  100. #define FN_CREIDX    22
  101. #define FN_LOPNCRE    29
  102.  
  103. #define FN_REDREC    31
  104. #define FN_RDVREC    32
  105. #define FN_WRTREC    33
  106. #define FN_WRTVREC    34
  107.  
  108. #define FN_NEWREC    41
  109. #define FN_NEWVREC    42
  110. #define FN_RETREC    43
  111. #define FN_RETVREC    44
  112.  
  113. #define FN_LOKREC    51
  114. #define FN_EQLKEY    52
  115. #define FN_DLOCK    53
  116. #define FN_UDLOCK    54
  117. #define FN_FLUSHDOS    55
  118. #define FN_RLOCK    56
  119. #define FN_MLTULK    57
  120.  
  121. #define FN_FLOWKEY    60
  122. #define FN_FRCKEY    60
  123. #define FN_FRSKEY    61
  124. #define FN_LSTKEY    62
  125. #define FN_NXTKEY    63
  126. #define FN_PRVKEY    64
  127.  
  128. #define FN_FTWOKEY    65
  129. #define FN_GTEKEY    65
  130. #define FN_GTKEY    66
  131. #define FN_LTEKEY    67
  132. #define FN_LTKEY    68
  133. #define FN_LLOWKEY    69
  134.  
  135. #define FN_IDXENT    71
  136. #define FN_DATENT    72
  137. #define FN_GTVLEN    73
  138. #define FN_SERIALNUM    74
  139.  
  140. #define CNT_RECIN    101
  141. #define CNT_RECOUT    102
  142. #define CNT_HDROUT    103
  143. #define CNT_FILEXT    104
  144. #define FN_TSTREC    105
  145.  
  146. #define FN_MLTWRT    149
  147. #define TST_MLTOPS    150
  148. #define FN_MLTKEY    151
  149.  
  150. #define FN_STATUS    160
  151. #define FN_STFILE    161
  152.  
  153. #define FN_YOURFUNC    170    /* reserved for your use */
  154.  
  155. #define TST_MESSAGE    200
  156. #define TST_MSGSIZ    201    /* regular logon */
  157. #define TST_STPSRV    202    /* stop server */
  158. #define TST_STPUSR    203    /* stop user */
  159. #define TST_BADFIL    204    /* bad file number signal */
  160. #define TST_DEDUSR    205    /* check for a dead user */
  161. #define TST_EXISTS    206    /* received a heart beat signal */
  162. #define TST_TRAN    207    /* transaction request */
  163. #define TST_SPCLOG    208    /* special logon even if shutting down */
  164. #define TST_SMSG    209    /* special driver control message not seen
  165.                    by ctsrvr
  166.                 */
  167. #define TST_YOURTEST    210    /* reserved for your use */
  168. #define MAX_FUNC    211    /* **************************************** */
  169.  
  170. /* end of ctcomm.h */
  171.