HP WebQoS Software manual Sample Process Group Program

Page 35

Sample Programs, Configuration, and Header Files

Sample Process Group Program

Sample Process Group Program

/*

*test_sc: generic main() to call wq_set_proc_cls/wq_get_proc_cls

*usage:

*

*test_sc svc_cls [-t]

*

*arguments:

*svc_clst = target service class

*-t = tracing on

*exit value:

*

*new (current) service class: 0-3, 99

*error: 100 */

#include <webqosapi.h>

#define ERR_RET

100

#define TR

if (tr_on)

#define USAGE

printf(“usage: %s svc_cls [-t]\n”, argv[0])

#ifdef __STDC__

main(in argc, char **argv) #else

main(argc, argv) int argc;

int **argv; #endif

{

int ret; int cls; int newcls; int err;

int tr_on = 0;

Appendix A

35

Image 35
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 WebQoS Example Setting the Process GroupOverview Using the WebQoS API Using the WebQoS API Wqgetsessioncls Return Value Error Code DescriptionWqsetsessioncls Class of Request Cls Value Classification Rule Cls ValuesExample Return Value Condition or Process GroupMultithreaded Applications Wqsetproccls Process Group Class ValuesUsing the WebQoS API wqsetproccls Troubleshooting Select the Classification Rules tab ChecklistRequest Classification Rule Class Error Codes Request Classification Rule Class Error Codes Process Group Error Codes Process Group Error Codes Error Code Wqerrpermission Error Code WqerrotherProcess 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