HP WebQoS Software manual Wqsetsessioncls

Page 17

Using the WebQoS API

wq_set_session_cls()

wq_set_session_cls()

Sets the request classification rule class of the current request being processed by the NSAPI plug-in application.

To successfully use this function, The WebQoS Administrator must configure WebQoS to allow the application to modify the request classification rule class (refer to the Installing and Configuring HP WebQoS manual for more information), 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 request classification rule class set using this function is effective for the current request only (it will not be effective for subsequent requests).

This function is thread safe.

Synopsis

#include <webqosapi.h>

int wq_set_service_cls(int socketid, uint32_t cls, int *errorcode)

Link using -lqosapi_rq

Arguments

socketid

The socket file descriptor corresponding to the remote

 

client connecting to the web server.

cls

The request classification rule class to which the

 

application sets the request. This request classification

 

rule class is set for the next and subsequent client

 

requests. Refer to “cls Values” for a list of request

 

classification rule class values.

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

17

Image 17
Contents HP WebQoS on HP-UX API Programmer’s Guide Legal Notices Page Page Contents Troubleshooting Printing History Page About the WebQoS API Overview Example Initial Service RequestExample Subsequent Service Requests 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