User's Guide
18 Chapter2
Using the WebQoS API
wq_set_session_cls()
cls Values
Use the following values to set the request classification rule class cls:
Return Value
wq_set_session_cls() returns 0 if it is successful or -1 if an error
occurred.
Errors
When an error occurs, errorcode is set to one of the following:
Table 2-3 wq_set_session_cls() cls Values
Class of Request
Classification Rule
cls Value
Low WQ_UCLASS_LOW
Medium WQ_UCLASS_MED
High WQ_UCLASS_HIGH
Table 2-4 wq_set_session_cls() Error Codes
Error Code Description
WQERR_INVAL_USER_CLS The value provided for cls is not a defined request
classification rule class.
WQERR_INVALD_SOCKID A bad socketid value was passed to
wq_set_session_cls().
WQERR_PLCY_DISALLOW The WebQoS administrator has not configured a
policy allowing applications to modify its request
classification rule class.
WQERR_USRCLAS_OTHER An internal request classification rule class error
occurred.
WQERR_WQOS_DISABLED WebQoS is disabled and cannot set the request
classification rule class.