User's Guide

16 Chapter2
Using the WebQoS API
wq_get_session_cls()
Return Value
wq_get_session_cls() returns a non-negative value representing the
request classification rule class or -1 if an error occurred.
Errors
When an error occurs, errorcode is set to one of the following:
Example
See Appendix A , “Sample Programs, Configuration, and Header Files,
on page 33 for an example.
Table 2-1 wq_get_session_cls() Return Values
Return Values Condition or
Class of Request
Classification Rule
-1 Error
WQ_UCLASS_LOW Low
WQ_UCLASS_MED Medium
WQ_UCLASS_HIGH High
Table 2-2 wq_get_session_cls() Error Codes
Error Code Description
WQERR_INVALD_SOCKID A bad socketid value was passed to
wq_get_session_cls().
WQERR_USRCLAS_OTHER An internal request classification rule class
error occurred.
WQERR_WQOS_DISABLED WebQoS is disabled and cannot provide the
request classification rule information.