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
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
This function is thread safe.
Synopsis
#include <webqosapi.h>
int wq_get_session_cls(int socketid, int *errorcode)
Link using
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
Chapter 2 | 15 |