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

  1. /*
  2.  *    System Dependent Message Headers
  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.  * LTYPE is the number of bytes from the beginning of the message to
  25.  * the c-tree portion of the message.
  26. */
  27. #define LTYPE    0
  28.  
  29. #define LSN        1
  30. #define RCV        2
  31. #define DATA_SIZE    534
  32. #define SPXHDR_SIZE    42
  33. #define REV_SPXHDR_SIZE    0x002A
  34. #define REV_TOTAL_SIZE    0x0240
  35.  
  36. union makepv {
  37.     int    (far *mpf)();
  38.     UCOUNT    mpw[2];
  39. } mp;
  40.  
  41. typedef struct {
  42.     TEXT    network[4];
  43.     TEXT    node[6];
  44.     TEXT    socket[2];
  45. } IPXADR;
  46.  
  47. typedef struct {
  48.     UCOUNT    checksum;
  49.     UCOUNT    length;    
  50.     TEXT    transportControl;
  51.     TEXT    packetType;
  52.     TEXT    destinationNetwork[4];
  53.     TEXT    destinationNode[6];
  54.     UCOUNT    destinationSocket;
  55.     TEXT    sourceNetwork[4];
  56.     TEXT    sourceNode[6];    
  57.     UCOUNT    sourceSocket;
  58.     TEXT    connectionControl;
  59.     TEXT    dataStreamType;
  60.     UCOUNT    sourceConnectionID;
  61.     UCOUNT    destConnectionID;
  62.     UCOUNT    sequenceNumber;    
  63.     UCOUNT    acknowledgeNumber;
  64.     UCOUNT    allocationNumber;
  65. } SPXHDR;
  66.  
  67. typedef struct {
  68.     UCOUNT    address[2];
  69.     UCOUNT    size;
  70. } ECBFRAG;
  71.  
  72. typedef struct {
  73.     UCOUNT            linkAddress[2];
  74.     UCOUNT            ESRAddress[2];
  75.     TEXT            inUseFlag;
  76.     TEXT            completionCode;
  77.     UCOUNT            socketNumber;
  78.     TEXT            IPXWorkspace[4];
  79.     TEXT            driverWorkspace[12];
  80.     TEXT            immediateAddress[6];
  81.     UCOUNT            fragmentCount;
  82.     ECBFRAG            fragmentDescriptor[2];
  83. } ECB;
  84.  
  85. #define IPXdatadr    IPXGetDataAddress
  86. #define SPXlisten    SPXListenForSequencedPacket
  87. #define SPXlsncon    SPXListenForConnection
  88. #define SPXinit        SPXInitialize
  89. #define IPXopen        IPXOpenSocket
  90. #define IPXrelq        IPXRelinquishControl
  91. #define SPXsend        SPXSendSequencedPacket
  92. #define SPXstatus    SPXGetConnectionStatus
  93. #define IPXcancel    IPXCancelEvent
  94. #define SPXestcon    SPXEstablishConnection
  95. #define SPXabort    SPXAbortConnection
  96. #define IPXclose    IPXCloseSocket
  97.  
  98.  
  99. #define SPX_CLEAN_TERMINATION        0xFE
  100.  
  101. #define SPX_IS_INSTALLED            0xFF
  102. #define SPX_NOT_INSTALLED            0x00
  103. #define SPX_CONNECTION_OK            0x00
  104. #define SPX_CONNECTION_STARTED        0x00
  105. #define SPX_CONNECTION_ESTABLISHED    0x00
  106. #define SPX_PACKET_SUCCESSFUL        0x00
  107. #define SPX_SOCKET_NOT_OPENED        0xFF
  108. #define SPX_MALFORMED_PACKET        0xFD
  109. #define SPX_PACKET_OVERFLOW            0xFD
  110. #define SPX_LISTEN_CANCELED            0xFC
  111. #define SPX_CONNECTION_TABLE_FULL    0xEF
  112. #define SPX_INVALID_CONNECTION        0xEE
  113. #define SPX_NO_ANSWER_FROM_TARGET    0xED
  114. #define SPX_CONNECTION_FAILED        0xED
  115. #define SPX_CONNECTION_TERMINATED    0xED
  116. #define SPX_TERMINATED_POORLY        0xEC
  117.  
  118. int xerr;
  119. UCOUNT soknum = 0x802f;
  120. UCOUNT ecbpos;
  121. ECB   *savecb;
  122.