HP WebQoS Software manual Using the WebQoS API

Models: WebQoS Software

1 43
Download 43 pages 2.68 Kb
Page 14
Image 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

Page 14
Image 14
HP WebQoS Software manual Using the WebQoS API