一夜风雨:
在tcpServerExecute事件里接收后马上回写,在客户端怎么收不到?
[阅读: 620] 2006-01-21 04:59:20
procedure TfrmMain.tcpServerExecute(AThread: TIdPeerThread);
var
Client: TSimpleClient;
Com, // System command
Msg: string;
begin
if not AThread.Terminated and AThread.Connection.Connected then
begin
{ Get the text sent from the client }
Msg := AThread.Connection.ReadString(20);
AThread.Connection.Write(msg);
memEMotes.Lines.Add(msg);
AThread.Connection.Disconnect;
end;
end;
奏刀騞然,莫不中音。合於桑林之舞,乃中经首之会。