home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
dax1.exe
/
CP
/
CPERR.C
< prev
next >
Wrap
Text File
|
1992-07-15
|
3KB
|
47 lines
// ╔════════════════════════════════════════════════════════════════════╗
// ║ ║
// ║ module: cperr.c ║
// ║ abstract: This module contains the API that translates error ║
// ║ codes to text strings. ║
// ║ ║
// ║ environment: NetWare 3.x v3.11 ║
// ║ Network C for NLMs SDK v2.0d ║
// ║ CLib v3.11 ║
// ║ Network C for DOS v2.0 ║
// ║ NetWare C Interface DOS v1.2 ║
// ║ ║
// ║ 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 02/28/92 kl initial release. ║
// ║ 002 07/14/92 kl windows port. ║
// ╚════════════════════════════════════════════════════════════════════╝
#include "cp/cpsys.h"
char *CPTranslateReturnCode(T_RC rc)
{
switch(rc){
case CP_SESSION_IN_PROGRESS: return "session in progress";
case CP_NO_TRANSPORT: return "no transport available";
case CP_TRANSPORT_ERROR: return "transport error";
case CP_UNKNOWN_SERVER: return "unknown server";
case CP_NO_MESSAGE: return "no message";
case CP_RESOURCE_ERROR: return "resource error";
case CP_TRANSPORT_BUSY: return "transport busy";
case CP_UNKNOWN_CLIENT: return "unknown client";
case CP_NO_SESSION_IN_PROGRESS: return "no session in progress";
default: return "unknown return code";
}
}