HP WebQoS Software manual Condition or Process Group, Return Value

Page 20

Using the WebQoS API

wq_get_proc_cls()

wq_get_proc_cls()

Gets the process group defined for the current process or thread.

This function is intended for processes that are separate from http daemons, such as cgi-bin. Plug-In applications that are expected to run as http daemon threads (such as NSAPI plug-ins) should not link to libqosapi_pr.sl.

Synopsis

#include <webqosapi.h>

int wq_get_proc_cls(int *errorcode)

Link using -lqosapi_pr -L/opt/prm/lib -lprmext

Arguments

errorcode The error code set when the return value is -1. Refer to “Errors” in this section for a list of error codes.

Return Value

wq_get_proc_cls() returns a non-negative value representing the process group or -1 if an error occurred.

Table 2-5

wq_get_proc_cls() Return Values

 

 

 

 

wq_get_proc_cls()

Condition or Process Group

 

Return Value

 

 

 

 

 

-1

Error

 

 

 

 

WQ_SVCCLS_LOW

Low

 

 

 

 

WQ_SVCCLS_MED

Medium

 

 

 

 

WQ_SVCCLS_HIGH

High

 

 

 

 

WQ_SVCCLS_OTHER

Other

 

 

 

 

WQ_SVCCLS_ROOT

PRM_SYS class; accessible by root only

 

 

 

20

Chapter 2

Image 20
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