Request a status
functionID = 1
The XML document that should be send to the server:
<softrulestcpframe>
<softrules>
<header>
<functionid>1</functionid>
<parameters/>
</header>
</softrules>
</softrulestcpframe>
Send this to the SoftRules® Server using the following command:
string serverState = SendXML(<xml>, TCPPort);
This will be the response:
<softrulestcpframe>
<softrules>
<result>
<configuration>-name-</configuration>
<function>Status (1)</function>
<messages/>
</result>
<status>Alive</status>
</softrules>
</softrulestcpframe>
If the Port is nog alive the following message will be returned.
No connection could be made because the target machine actively refused it.