Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SocketClientIsReady - property of object PmData

Description:
Finding out it the object is ready to write/read over Sockets. In this case the PmData object is then the Socket client.
Syntax:
SocketClientIsReady As Boolean
Calling:
b = oData.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. The PmData 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 method then returns the value false. After the transfer (i.e. after the onEndOfTransfer event fires) the methods can be called again and the SocketClientIsReady method returns the value true.
Example:
If oData.SocketClientIsReady Then
  oData.ReadFromSocket
Else
  Pm.Debug "SocketClient is not ready (is still active)"
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice