Promotic

SocketClientIsReady - property of the PmaData object

Description:
Detects whether the object is ready to write/read over Sockets. In this case the PmaData object is the Socket client.
Syntax:
Boolean SocketClientIsReady
Values:
true - The object is ready to transfer the data over the Socket (i.e. the ReadFromSocket or WriteToSocket method can be called)
false - The object is not ready to transfer the data (the data from the previous calling the referred methods is still transferring)
Note:
Property access for read only.
 
This method is not functional for PmFree.

The PmaData object gets in the transfer of data state by calling the ReadFromSocket or WriteToSocket method. During the transfer these methods cannot be re-called over the object and the SocketClientIsReady property then returns the value false. After the transfer (i.e. after the onEndOfTransfer event is triggered) the methods can be called again and the SocketClientIsReady property returns the value true.
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (oData.SocketClientIsReady)
{
oData.ReadFromSocket();
}
else
{
Pm.Debug("SocketClient is not ready (is still active)");
}
PROMOTIC 9.0.17 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice