External Measurement API

wqCreateConnection()

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.

 

 

136

Appendix B

Page 136
Image 136
HP WebQoS Software manual WqCreateConnection, Synopsis, Arguments, Return Value Status