Ver Mensaje Individual
  #2  
Antiguo 19-02-2009
Delfino Delfino is offline
Miembro
 
Registrado: jul 2003
Ubicación: Madrid
Posts: 974
Reputación: 23
Delfino Va por buen camino
En los eventos OnExecute y OnDisconnect tienes el parametro AContext, q significa el cliente q genera el evento :
Código Delphi [-]
AContext.Connection.IOHandler.WriteLn('xxx');
Para iterar sobre todos los clientes debe hacer algo asi :
Código Delphi [-]
 Clientes := TCP.Contexts.LockList;
 try
  for I := 0 to Clientes.Count - 1 do
   begin
     // ..
   end;
  finally
   TCP.Contexts.UnlockList;
  end;
__________________
¿Microsoft? No, gracias..
Responder Con Cita