Developer Reference : Platform Management : Distributed Tuning Interface (DTI) Guide : Distributed Tuning Interface Reference : PvDisconnect()
 
PvDisconnect()
Attempts to disconnect the connection established earlier by PvConnectServer function.
Header File: connect.h (See also Header Files)
Function First Available In Library: w3dbav75.dll (Windows), libpsqldti.so (Linux), libpsqldti.dylib (macOS) (See also Link Libraries)
Syntax
BTI_SINT PvDisconnect(
   BTI_LONG         hConnection);
Arguments
 
In
hConnection
Connection handle to be disconnected.Connection handles are obtained with the PvConnectServer() function.
Return Values
 
P_OK
The operation was successful.
P_E_INVALID_HANDLE
Invalid connection handle.
P_E_FAIL
Failed to disconnect to the named server.
Example
BTI_SINT status = 0;
 
status = PvDisconnect(m_hConn);
See Also
PvStart()
PvConnectServer()
PvGetMkdeClientsData()
PvGetMkdeCommStat()
PvGetMkdeUsage()
PvGetOpenFilesData()
PvFreeOpenFilesData()
PvDisconnectMkdeClient()
PvDisconnectSQLConnection()
PvStop()