HP WebQoS Software manual Using the WebQoS API

Page 14

Using the WebQoS API

There is one header file that must be included in your program (contents of this header file can be found in Appendix A , “Sample Programs, Configuration, and Header Files,” on page 33):

/usr/include/webqosapi.h

There are four function calls available:

wq_get_session_cls() — gets the current classification rule class of the current request being processed by the NSAPI plug-in application

wq_set_session_cls() — sets the classification rule class of the current request being processed by the NSAPI plug-in application

wq_get_proc_cls() — gets the process group defined for the current process or thread

wq_set_proc_cls() — sets the process group of the current process When compiling your applications, you must link to one or two libraries:

libqosapi_rq.sl — If you use wq_get_session_cls() or

wq_set_session_cls(), use -lqosapi_rqto link to this library.

libqosapi_pr.sl and libprmext.sl — If you use

wq_get_proc_cls() or wq_set_proc_cls(), use -lqosapi_pr-L/opt/prm/lib-lprmextto link to these libraries.

14

Chapter 2

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