Thema: Delphi Spielwiese - SocketTest

Einzelnen Beitrag anzeigen

mjustin

Registriert seit: 14. Apr 2008
3.004 Beiträge
 
Delphi 2009 Professional
 
#10

AW: Spielwiese - SocketTest

  Alt 12. Okt 2016, 10:38
Das stimmt. Die Indys sind sogar glaube ich standardmäßig auch auf blocking eingestellt.
Indy arbeitet nur mit blocking Sockets, einen Schalter für non-blocking haben sie nicht:

http://www.swissdelphicenter.ch/en/showarticle.php?id=4

Zitat:
Indy is Blocking

Indy uses blocking socket calls. Blocking calls are much like reading and writing to a file. When you read data, or write data, the function will not return until the operation is complete. The difference from working with files is that the call may take much longer as data may not be immediately ready for reading or writing (It can only operate as fast as the network or the modem can handle the data).
Für länger laufende Aktionen, z.B. Warten auf asynchrones Daten vom Server im TidTelnet Komponente, arbeiten die Indys mit Threads.
Michael Justin
habarisoft.com
  Mit Zitat antworten Zitat