home *** CD-ROM | disk | FTP | other *** search
/ GRIPS 2: Government Rast…rocessing Software & Data / GRIPS_2.cdr / dos / ncsa_tel / contribu / byu_tel2.hqx / tcpip / at.h next >
Text File  |  1988-07-15  |  3KB  |  119 lines

  1. #ifndef lint
  2. static char *SCCSid = "%W%    (NCSA)    %G%";
  3. #endif
  4. /*
  5. *    at.h
  6. *     by Gaige B. Paulsen
  7. ****************************************************************************
  8. *                                                                          *
  9. *      Uses    :                                                               *
  10. *      TCP/IP kernel for NCSA Telnet                                       *
  11. *      by Tim Krauskopf                                                    *
  12. *       with Macintosh code by Gaige B. Paulsen                                 *
  13. *                                                                          *
  14. *      National Center for Supercomputing Applications                     *
  15. *      152 Computing Applications Building                                 *
  16. *      605 E. Springfield Ave.                                             *
  17. *      Champaign, IL  61820                                                *
  18. *                                                                          *
  19. *                                                                          *
  20. ****************************************************************************
  21. *
  22. *    Appletalk header file.
  23. *
  24. */
  25.  
  26. #ifndef _TOOLUTIL
  27. #include    <toolutil.h>
  28. #endif
  29. #ifndef _OSUTIL
  30. #include    <osutil.h>
  31. #endif
  32.  
  33. union atParamType {
  34.     struct {
  35.         int        socket;
  36.         void    (*listener)();
  37.         } ddpOpen;
  38.     struct {
  39.         unsigned char
  40.                 socket,
  41.                 checksum;
  42.         char *wdsPointer;
  43.         } ddpWrite;
  44.     struct {
  45.         unsigned char
  46.                 currBitMap,
  47.                 atpFlags;
  48.         long    addrBlock;
  49.         int        reqLength;
  50.         char   *reqPointer;
  51.         char   *bdsPointer;
  52.         unsigned char
  53.                 numOfBuffs,
  54.                 timeOutVal,
  55.                 numOfResps,
  56.                 retryCount;
  57.         } atpSendRequest;
  58.     struct {
  59.         unsigned char
  60.                 interval,
  61.                 count;
  62.         char   *entityPtr;
  63.         unsigned char
  64.                 verifyFlag;
  65.         } nbpRegisterName;
  66.     struct {
  67.         unsigned char
  68.                 interval,
  69.                 count;
  70.         char   *entityPtr,
  71.                *retBuffPtr;
  72.         int        retBuffSize;
  73.         int        maxToGet;
  74.         int        numGotten;
  75.         } nbpLookupName;
  76. };
  77. typedef union atParamType        atParamType;
  78. typedef union atParamType *        atParamPtr;
  79.  
  80.  
  81. struct atPBRec {
  82.     struct ParamBlkRec *    qLink;
  83.     short                    qType;
  84.     short                    ioTrap;
  85.     Ptr                        ioCmdAddr;
  86.     ProcPtr                    ioCompletion;
  87.     short                    ioResult;
  88.     char *                    ioNamePtr;
  89.     short                    ioVRefNum;
  90.     short            csRefNum;
  91.     short            csCode;
  92.     atParamType        csParam;
  93. };
  94. typedef struct atPBRec        atPBRec;
  95. typedef struct atPBRec       *atPBRecPtr;
  96.  
  97.  
  98. struct wds {
  99.     char    res1[8];
  100.     int        aNet;
  101.     int        res2;
  102.     unsigned char
  103.             aNode,res3,
  104.             aSocket,res4,
  105.             aType,res5;
  106.     };
  107.  
  108. typedef struct wds    wds;
  109.  
  110. struct entity {
  111.     char   *nextQueue;
  112.     long    addrBlock;
  113.     unsigned char
  114.             res1;
  115.     char    entityName[98];
  116.     }
  117. typedef struct entity entity;
  118.  
  119.