HP WebQoS Software manual Webqosapi.h Header File

Page 38

Sample Programs, Configuration, and Header Files

webqosapi.h Header File

webqosapi.h Header File

The following is the contents of the /usr/include/webqosapi.h header file.

#ifndef _WEBQOSAPI_H #define _WEBQOSAPI_H

/*

*$Source: /qos/qosapi/webqosapi.h $ $Revision: 1.21 $ $Date: 1999/02/17 22:48:28 $”

*(C) Copyright 1998, Hewlett-Packard Company, all rights reserved.

*/

#include <inttypes.h>

/* for uint32_t */

#ifdef __cplusplus extern “C” {

#endif /* __cplusplus */

/* Service (AKA Processing) classes */

 

#define WQ_SVCCLS_OTHER

0

 

 

#define WQ_SVCCLS_LOW

1

 

 

#define WQ_SVCCLS_MED

2

 

 

#define WQ_SVCCLS_HIGH

3

 

 

#define WQ_SVCCLS_ROOT

99

 

/* PRM_SYS, only for root */

/* User (AKA Session) classes */

 

 

 

#define WQ_UCLASS_LOW

1

 

 

#define WQ_UCLASS_MED

2

 

 

#define WQ_UCLASS_HIGH

3

 

 

/* Service (AKA Processing) class

errors codes */

#define WQERR_OTHER

(-1)

/* generic error - see log file */

#define WQERR_NOTREADY

(-2)

/* not installed, not config’d, etc */

#define WQERR_CONNECT

(-3)

/* connection problem - see log file */

#define WQERR_PERMISSION

(-4)

/* permission denied in svccls.allow */

#define WQERR_BADSVCCLASS

(-5)

/* invalid service class argument */

#define WQERR_BADSCOPE

(-6)

/* invalid scope argument */

#define WQERR_NOTROOT

(-7)

/* only root can move to this class */

/* User (AKA Session) class error

codes

*/

#define WQERR_WQOS_DISABLED

(-20)

/* WebQoS is disabled */

38

Appendix A

Image 38
Contents HP WebQoS on HP-UX API Programmer’s Guide Legal Notices Page Page Contents Troubleshooting Printing History Page About the WebQoS API Overview Example Initial Service RequestExample Subsequent Service Requests Example Setting the Process Group WebQoSOverview Using the WebQoS API Using the WebQoS API Wqgetsessioncls Error Code Description Return ValueWqsetsessioncls Cls Values Class of Request Cls Value Classification RuleExample Condition or Process Group Return ValueMultithreaded Applications Wqsetproccls Class Values Process GroupUsing the WebQoS API wqsetproccls Troubleshooting Checklist Select the Classification Rules tabRequest Classification Rule Class Error Codes Request Classification Rule Class Error Codes Process Group Error Codes Process Group Error Codes Error Code Wqerrother Error Code WqerrpermissionProcess Group Error Codes Sample Programs, Configuration, and Header Files Sample Session Class Program Sample Process Group Program Sample Process Group Program Svccls.allow Configuration File Webqosapi.h Header File Webqosapi.h Header File Webqosapi.h Header File Index Index Index
Related manuals
Manual 182 pages 33.13 Kb Manual 150 pages 36.15 Kb