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 >
Wrap
Text File
|
1992-07-15
|
3KB
|
72 lines
// ╔════════════════════════════════════════════════════════════════════╗
// ║ ║
// ║ module: cpc.h ║
// ║ ║
// ║ This software is provided as is and carries no warranty ║
// ║ whatsoever. Novell disclaims and excludes any and all implied ║
// ║ warranties of merchantability, title and fitness for a particular ║
// ║ purpose. Novell does not warrant that the software will satisfy ║
// ║ your requirements or that the software is without defect or error ║
// ║ or that operation of the software will be uninterrupted. You are ║
// ║ using the software at your risk. The software is not a product ║
// ║ of Novell, Inc. or any of subsidiaries. ║
// ║ ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ maintenance history: ║
// ║ level date pi description ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ 001 01/23/92 kl initial release. ║
// ║ 002 07/14/92 kl windows port. ║
// ╚════════════════════════════════════════════════════════════════════╝
#if !defined(CPCHDR)
#define CPCHDR
#if defined(WINCLIENT)
#include <windows.h>
#endif
#include "helper.h"
#define CPCNUMSENDECBS 2
#define CPCNUMRECVECBS 2
//------------------------------------------------------------------------
//
// Create a structure that holds everything we need to send/recv data
// on a session between the client and server.
//
typedef struct{
ECB ecb;
IPXHeader ipx;
CPMESSAGE cpmsg;
}CPCOMMDATA;
//------------------------------------------------------------------------
//
// Create a structure that has what we need to keep track of a session.
// A pointer to this structure is given to the DAP Layer, and it uses
// this on all calls to the CP Layer.
//
typedef struct _cpData{
UINT32 sip; // session in progress flag
UINT16 skt; // local socket we are listening on
IPXAddress ipxaddr; // network address of server
CPHEADER cphdr; // header for cp layer between client/server
CPCOMMDATA sends[CPCNUMSENDECBS];
CPCOMMDATA recvs[CPCNUMRECVECBS];
}CPDATA;
extern void CPInitRecvPacket(WORD skt, ECB *ecb, IPXHeader *pkt, void *d, WORD sz);
extern void CPInitSendPacket(WORD skt, ECB *ecb, IPXHeader *pkt, void *d, WORD sz, IPXAddress *dest);
extern T_RC CPInitializeRecvLogic(CPDATA *CPid);
extern void CPDeInitializeRecvLogic(CPDATA *CPid);
extern T_RC CPInitializeConnLogic(CPDATA *CPid);
extern T_RC CPDeInitializeConnLogic(CPDATA *CPid);
extern T_RC CPInitializeSendLogic(CPDATA *CPid);
extern void CPDeInitializeSendLogic(CPDATA *CPid);
#endif