HP WebQoS Software manual Wqgetsessioncls

Page 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.

Chapter 2

15

Image 15
Contents HP WebQoS on HP-UX API Programmer’s Guide Legal Notices Page Page Contents Troubleshooting Printing History Page About the WebQoS API Example Initial Service Request Example Subsequent Service RequestsOverview WebQoS Example Setting the Process GroupOverview Using the WebQoS API Using the WebQoS API Wqgetsessioncls Return Value Error Code DescriptionWqsetsessioncls Class of Request Cls Value Classification Rule Cls ValuesExample Return Value Condition or Process GroupMultithreaded Applications Wqsetproccls Process Group Class ValuesUsing the WebQoS API wqsetproccls Troubleshooting Select the Classification Rules tab ChecklistRequest Classification Rule Class Error Codes Request Classification Rule Class Error Codes Process Group Error Codes Process Group Error Codes Error Code Wqerrpermission Error Code WqerrotherProcess Group Error Codes Sample Programs, Configuration, and Header Files Sample Session Class Program Sample Process Group Program Sample Process Group Program Svccls.allow Configuration File Webqosapi.h Header File Webqosapi.h Header File Webqosapi.h Header File Index Index Index
Related manuals
Manual 182 pages 33.13 Kb Manual 150 pages 36.15 Kb