I have a TCP connection (proxy) that connects through socks4-5 and sends http / https / DNS traffic through it. I need something to share, something to http / https etc. went through tcp connection 1 and dns resolve through tcp connection 2
I tried to create IdTCPServer1 (But I'm not sure on the right track), it connects but nothing sends him. In addition, he hangs on until ReadLn it will not be recorded data, and it is not permissible.
procedure TForm1.IdTCPServer1Execute(AContext: TIdContext);
var str_str:String;
begin
str_str:=AContext.Connection.Socket.ReadLn();
if(str_str<>'') then Memo1.Lines.Add('#TCP_SERVER: EXECUTE: '+str_str);