Closes a connection to the SRP Engine Service.

Syntax

SRP_TcpClient(Object, "CLOSE_SES")

Returns

Always returns 1.

Remarks

The CLOSE_SES service must be called to close a connection to the SRP Engine Service, otherwise the connection remains open until OpenInsight closes. The Object parameter is a handle to an existing connection. CLOSE_SES differs from the CLOSE service in that it sends a command to the server prior to closing to ensure a clean disconnect.

Example

// Connect to a local SRP Engine Service and then close 
TcpClientHandle = 0 
If SRP_TcpClient(TcpClientHandle, "CONNECT", "127.0.0.1", "7777") then 
   SRP_TcpClient(TcpClientHandle, "CLOSE_SES") 
end