Ver Mensaje Individual
  #3  
Antiguo 02-10-2003
Viet Viet is offline
Miembro
 
Registrado: jul 2003
Ubicación: Argentina - Mar del Plata
Posts: 252
Reputación: 21
Viet Va por buen camino
Tambien lo puedes hacer con los Indy con :

Código:
// en el server 

procedure TF_ppal.ServerExecute(AThread: TIdPeerThread);

begin

 with AThread.Connection do
  begin
    while Connected do begin
     msg := msg +  ReadLn;
     Disconnect;
    end;

end;

// en el cliente


procedure TF_ppal.botonxClick(Sender: TObject);
begin

   try
    Cli.host:= 'PCServer';
    Cli.Port := 1000;

    Cli.Connect;
    Cli.writeln( 'Mensaje');
    Cli.Disconnect;

   except
   end;

end;
todo lo haces con IdTCPClient, IdTCPServer

Suerte
__________________
Marín Ignacio Borthiry (Viet) - "El hombre arriesga su vida cada vez que elije y eso es lo que lo hace libre" ;)
Responder Con Cita