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.

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

 

 

 

Errors

 

When an error occurs, errorcode is set to one of the following:

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.

 

 

 

Example

See Appendix A , “Sample Programs, Configuration, and Header Files,” on page 33 for an example.

16

Chapter 2

Page 16
Image 16
HP WebQoS Software manual Return Value, Error Code Description