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
•wq_set_session_cls() — sets the classification rule class of the current request being processed by the NSAPI
•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
•libqosapi_pr.sl and libprmext.sl — If you use
wq_get_proc_cls() or wq_set_proc_cls(), use
14 | Chapter 2 |