HP WebQoS for HP-UX API Programmer's Guide
Chapter 2 15
Using the WebQoS API
wq_get_session_cls()
wq_get_session_cls()
Gets the current request classification rule class of the current request
being processed by the NSAPI plug-in application.
To use this function, WebQoS must be enabled and either
• SSL is not used and cookies are enabled, OR
• client connections must be persistent.
If SSL is used and/or cookies are disabled and client connections are not
persistent, the value returned corresponds to the policy configured in
WebQoS for this request.
The request classification rule class value returned may have been set by
a plug-in application (using wq_set_session_cls()) or may have been
configured using the WebQoS management user interface.
This function is thread safe.
Synopsis
#include <webqosapi.h>
int wq_get_session_cls(int socketid, int *errorcode)
Link using -lqosapi_rq
Arguments
socketid The socket file descriptor corresponding to the remote
client connecting to the web server.
errorcode The error code returned when the return value is -1.
Refer to “Errors” in this section for a list of error codes.