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 >
Text File  |  1992-07-15  |  3KB  |  47 lines

  1. //   ╔════════════════════════════════════════════════════════════════════╗
  2. //   ║                                                                    ║
  3. //   ║ module:      cperr.c                                               ║
  4. //   ║ abstract:    This module contains the API that translates error    ║
  5. //   ║              codes to text strings.                                ║
  6. //   ║                                                                    ║
  7. //   ║ environment: NetWare 3.x v3.11                                     ║
  8. //   ║              Network C for NLMs SDK v2.0d                          ║
  9. //   ║              CLib v3.11                                            ║
  10. //   ║              Network C for DOS v2.0                                ║
  11. //   ║              NetWare C Interface DOS v1.2                          ║
  12. //   ║                                                                    ║
  13. //   ║  This software is provided as is and carries no warranty           ║
  14. //   ║  whatsoever.  Novell disclaims and excludes any and all implied    ║
  15. //   ║  warranties of merchantability, title and fitness for a particular ║
  16. //   ║  purpose.  Novell does not warrant that the software will satisfy  ║
  17. //   ║  your requirements or that the software is without defect or error ║
  18. //   ║  or that operation of the software will be uninterrupted.  You are ║
  19. //   ║  using the software at your risk.  The software is not a product   ║
  20. //   ║  of Novell, Inc. or any of subsidiaries.                           ║
  21. //   ║                                                                    ║
  22. //   ╟────────────────────────────────────────────────────────────────────╢
  23. //   ║ maintenance history:                                               ║
  24. //   ║ level    date      pi   description                                ║
  25. //   ╟────────────────────────────────────────────────────────────────────╢
  26. //   ║  001   02/28/92    kl   initial release.                           ║
  27. //   ║  002   07/14/92    kl   windows port.                              ║
  28. //   ╚════════════════════════════════════════════════════════════════════╝
  29.  
  30. #include    "cp/cpsys.h"
  31.  
  32. char    *CPTranslateReturnCode(T_RC rc)
  33. {
  34.         switch(rc){
  35.         case CP_SESSION_IN_PROGRESS:    return "session in progress";
  36.         case CP_NO_TRANSPORT:           return "no transport available";
  37.         case CP_TRANSPORT_ERROR:        return "transport error";
  38.         case CP_UNKNOWN_SERVER:         return "unknown server";
  39.         case CP_NO_MESSAGE:             return "no message";
  40.         case CP_RESOURCE_ERROR:         return "resource error";
  41.         case CP_TRANSPORT_BUSY:         return "transport busy";
  42.         case CP_UNKNOWN_CLIENT:         return "unknown client";
  43.         case CP_NO_SESSION_IN_PROGRESS: return "no session in progress";
  44.         default:                        return "unknown return code";
  45.         }
  46. }
  47.