home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / dax1.exe / CP / CPC / CPC.H next >
Text File  |  1992-07-15  |  3KB  |  72 lines

  1. //   ╔════════════════════════════════════════════════════════════════════╗
  2. //   ║                                                                    ║
  3. //   ║ module:      cpc.h                                                 ║
  4. //   ║                                                                    ║
  5. //   ║  This software is provided as is and carries no warranty           ║
  6. //   ║  whatsoever.  Novell disclaims and excludes any and all implied    ║
  7. //   ║  warranties of merchantability, title and fitness for a particular ║
  8. //   ║  purpose.  Novell does not warrant that the software will satisfy  ║
  9. //   ║  your requirements or that the software is without defect or error ║
  10. //   ║  or that operation of the software will be uninterrupted.  You are ║
  11. //   ║  using the software at your risk.  The software is not a product   ║
  12. //   ║  of Novell, Inc. or any of subsidiaries.                           ║
  13. //   ║                                                                    ║
  14. //   ╟────────────────────────────────────────────────────────────────────╢
  15. //   ║ maintenance history:                                               ║
  16. //   ║ level    date      pi   description                                ║
  17. //   ╟────────────────────────────────────────────────────────────────────╢
  18. //   ║  001   01/23/92    kl   initial release.                           ║
  19. //   ║  002   07/14/92    kl   windows port.                              ║
  20. //   ╚════════════════════════════════════════════════════════════════════╝
  21.  
  22. #if !defined(CPCHDR)
  23. #define CPCHDR
  24.  
  25. #if defined(WINCLIENT)
  26.     #include <windows.h>
  27. #endif
  28.  
  29. #include "helper.h"
  30.  
  31. #define     CPCNUMSENDECBS  2
  32. #define     CPCNUMRECVECBS  2
  33.  
  34. //------------------------------------------------------------------------
  35. //
  36. //  Create a structure that holds everything we need to send/recv data
  37. //  on a session between the client and server.
  38. //
  39. typedef     struct{
  40.         ECB         ecb;
  41.         IPXHeader   ipx;
  42.         CPMESSAGE   cpmsg;
  43. }CPCOMMDATA;
  44.  
  45. //------------------------------------------------------------------------
  46. //
  47. //  Create a structure that has what we need to keep track of a session.
  48. //  A pointer to this structure is given to the DAP Layer, and it uses
  49. //  this on all calls to the CP Layer.
  50. //
  51. typedef     struct  _cpData{
  52.         UINT32      sip;        // session in progress flag
  53.         UINT16      skt;        // local socket we are listening on
  54.         IPXAddress  ipxaddr;    // network address of server
  55.         CPHEADER    cphdr;      // header for cp layer between client/server
  56.         CPCOMMDATA  sends[CPCNUMSENDECBS];
  57.         CPCOMMDATA  recvs[CPCNUMRECVECBS];
  58. }CPDATA;
  59.  
  60. extern  void    CPInitRecvPacket(WORD skt, ECB *ecb, IPXHeader *pkt, void *d, WORD sz);
  61. extern  void    CPInitSendPacket(WORD skt, ECB *ecb, IPXHeader *pkt, void *d, WORD sz, IPXAddress *dest);
  62. extern  T_RC    CPInitializeRecvLogic(CPDATA *CPid);
  63. extern  void    CPDeInitializeRecvLogic(CPDATA *CPid);
  64. extern  T_RC    CPInitializeConnLogic(CPDATA *CPid);
  65. extern  T_RC    CPDeInitializeConnLogic(CPDATA *CPid);
  66. extern  T_RC    CPInitializeSendLogic(CPDATA *CPid);
  67. extern  void    CPDeInitializeSendLogic(CPDATA *CPid);
  68.  
  69. #endif
  70.  
  71. 
  72.