Delphi XE2 / Indy TIdTCPServer / “Connection reset by peer”
问题 I'm with one problem using Indy in Delphi XE2 to send TCP Messages using TIdTCPServer. For exemple: I have 2 devices and i'll go communicate with device 1. When i send messages to device 1, the messages were send fine. But without close the program, when i send messages to device 2, Delphi returns "Connection reset by peer". Below is my code: procedure TMainHost.idTCPServerNewConnect(AContext: TIdContext); var Client: TSimpleClient; begin Sleep(1000); Client := TSimpleClient.Create(); Client