Keesver 23 Posted March 22, 2023 (edited) I can remember seeing a method or class in Indy which allowed me to connect an incoming socket to an outgoing socket directly so that data flows from in to out. However I can't remember the name or file where I can find it. Any ideas? Edited March 22, 2023 by Keesver Share this post Link to post
Remy Lebeau 1436 Posted March 22, 2023 (edited) You are probably thinking of the TIdTCPStream class. You can assign a target TIdTCPConnection to it, and then pass it to the IOHandler.ReadStream() method of a source TIdTCPConnection. You can then tell ReadStream() to either read a specific number of bytes, or to read endlessly until the source socket disconnects. Any bytes read in from the source will be written out to the target. Edited March 22, 2023 by Remy Lebeau Share this post Link to post