Using the
Using Sessions
Using Sessions
Every application that uses the
Starting a Session
Every application that uses the
uint32_t IpqosInitSession(uint32_t version,char * configName,IpqosSessionType sessionType)
The arguments can be described as follows:
—version: the version ID of the
—configName: specify NULL (this argument is for future enhancements and is currently unused).
—sessionType: specify the type of session being started. Permitted session types are:
IPQOS_SESSION_CONFIG, IPQOS_SESSION_READ, IPQOS_SESSION_STATS.
A return value of IPQOS_S_SUCCESS indicates the session started successfully. Any other return value signifies an error.
When any session type is started, the API first reads the current
An application can only have one active session (of any type) at a given time. Thus, to start a new session, the current session (if one exists) must first be terminated. The functions available to terminate a session are discussed in a following section.
Session Types
There are three session types in the
22 | Chapter 2 |