IdTCPServer接收到IdTCPClient的消息后能不能回传消息。还是要在客户端放一个 IdTCPServer 控件?

解决方案 »

  1.   

    ToNetCom,ToProxy:String;
            ToNetCom= AThread->Connection->ReadLn();
            //自己的处理过程
            AThread->Connection->WriteLn(ToProxy);
            AThread->Connection->Disconnect();
      

  2.   

    ToNetCom,ToProxy:String;
            ToNetCom:= AThread.Connection.ReadLn();
            //自己的处理过程
            AThread.Connection.WriteLn(ToProxy);
            AThread.Connection.Disconnect();