HP WebQoS Administration Guide

External Measurement API
wqCreateConnection()
Appendix B136
wqCreateConnection()
Establishes a connection to the SCI component of WebQoS.
Synopsis
#include </opt/webqos/include/qosExternMeaseAPI.h> or
#include
<install-directory>
\include\qosExternMeasApi.h
wqStatus wqCreateConnection(char *hostname, wqSocket *socket)
Arguments
hostname
The name of the system running the WebQoS SCI
component.
socket
The socket descriptor returned by WebQoS and used by
the two other methods to identify the connection to
WebQoS.
Return Value
wqCreateConnection() returns a non-negative value representing the
method status.
Return Value Status
WQ_STATUS_OK A connection with WebQoS has been established.
WQ_STATUS_FAILURE Could not establish a connection with WebQoS.