Board index » delphi » How TIdTCPClient get random information from Server?
How TIdTCPClient get random information from Server?
2004-07-23 11:29:29 AM
I know the Indy way to do net work is:
Connect to server
Disconnect from Server
but if I don't know when server would return data to me,because Indy is
blocking and not event driven,How could I know that the server has send
unexpected data to me??Am I clear enough? In normal winsock
programming,I connected to server,send data to server,and if server send
data back to me ,there is an event fired up,which I know I should do
something about that data.but in indy,It seems like I should exactlly
know when the server send data back to me,but how about the conditions
that I am not sure when server would send data to me? thanks.