Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Internet (https://www.clubdelphi.com/foros/forumdisplay.php?f=3)
-   -   proxy TServerSocket/TClientSocket (https://www.clubdelphi.com/foros/showthread.php?t=54806)

TROMPO 31-03-2008 19:48:35

proxy TServerSocket/TClientSocket
 
holas.. alguien me puede ayudar con eso.. ?

estoy intentando de hacer un proxy con esos componentes pero al parecer tengo problemas de sincronizacion, soy nuevo en delphi.. y pues no se como solucionarlo :(

Código:

procedure TForm1.client44405Read(Sender: TObject;
  Socket: TCustomWinSocket);
var
  data:string;
begin
  if socket.ReceiveLength<1 then
    Exit;
  data:=socket.ReceiveText;

  if server44405.Socket.Connected then
      server44405.Socket.SendText(data)  // <<<- aki error 10057
  else
      memo2.Lines.Add('Recv '+ asciitohex(data,true));

end;

nota.. si alguien tiene algun proxy/"man in the middle" de ejemplo plz :)


La franja horaria es GMT +2. Ahora son las 10:33:54.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi