Date: Thu, 28 Mar 2024 03:50:31 -0700 (PDT) Message-ID: <124224046.149.1711623031698@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_148_1495075759.1711623031698" ------=_Part_148_1495075759.1711623031698 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Closes a connection to the SRP Engine Service.
Syntax
SRP_TcpClient(Obje= ct, "CLOSE_SES")
Always returns 1.
The CLOSE_SES service must be called to close a connection to the SRP En= gine Service, otherwise the connection remains open until OpenInsight close= s. The Object parameter is a handle to an existing connection. CLOSE_SES di= ffers from the C= LOSE service in that it sends a command to the server prior to clo= sing to ensure a clean disconnect.
// Connect to a lo= cal SRP Engine Service and then close=20 TcpClientHandle =3D 0=20 If SRP_TcpClient(TcpClientHandle, "CONNECT", "127.0.0.1", "7777") then=20 SRP_TcpClient(TcpClientHandle, "CLOSE_SES")=20 end