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

Page 35
Image 35
HP WebQoS Software manual Sample Process Group Program