ReadFromSocket - method of object PmData

Reading data from the server group over the TCP/IP (Ethernet) using the sockets
ReadFromSocket As Boolean
Return Values:
true - The method successfully queued the request for reading data from the server. After data transfer the onEndOfTransfer event will be fired.
false - The method hasn't queued the request for reading data. Probably the previous message about sending/receiving by sockets of this object hasn't been finished yet. The onEndOfTransfer event is not fired.

The method only activates the data transfer but there is no assurance that data are already transferred after ending this method. The data transfer termination is announced by the onEndOfTransfer event.

Calling this method is meaningful only if the Sockets page is configured as the Socket client.

Variables on the Data page of this object are filled up by the incoming data.

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