请看下面的代码:procedure TForm1.IdTCPServer1Execute(AThread: TIdPeerThread);
const
  TempImageFile='c:\test.bmp';
  //设置的临时图像文件
var
  t:TMemoryStream;
begin
  t:=TMemoryStream.Create;
  AThread.Connection.ReadStream(t,-1,True);  //从连接中取得流式数据
  t.SaveToFile(TempImageFile);
  Image2.Picture.LoadFromFile(TempImageFile);
  t.Free ;
end;其中的AThread我不认识,可查DELPHI的帮助查不到,到书店里查书也查不到,请大家给我讲讲,或指明在DELPHI帮助里的位置。我用索引里搜不到。

解决方案 »

  1.   

    AThread声明为TIdPeerThread类型,在帮助中可以查到TIdPeerThread类啊,你用的Delphi几,D6以前的版本可能查不到
    TIdPeerThread 
    Thread used for client connections.TIdPeerThread = class(TIdThread)DescriptionTIdPeerThread is a thread that is created for every connection made to the TIdTCPServer. Every client connection runs in it's own thread on the TIdTCPServer.Requests for TIdPeerThreads are created by a TIdListenerThread, and are delegated to the TIdThreadMgr for the TCP server.