Using the WebQoS API wq_set_session_cls()
cls Values
| Use the following values to set the request classification rule class cls: | ||
Table | wq_set_session_cls() cls Values | ||
|
|
|
|
| Class of Request | cls Value |
|
| Classification Rule |
|
|
|
|
|
|
| Low | WQ_UCLASS_LOW |
|
|
|
|
|
| Medium | WQ_UCLASS_MED |
|
|
|
|
|
| High | WQ_UCLASS_HIGH |
|
|
|
|
|
Return Value
wq_set_session_cls() returns 0 if it is successful or
Errors
| When an error occurs, errorcode is set to one of the following: | |
Table | 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. |
|
|
|
18 | Chapter 2 |