中国开发网: 论坛: 程序员情感CBD: 贴子 279097
一夜风雨
在tcpServerExecute事件里接收后马上回写,在客户端怎么收不到?
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;
奏刀騞然,莫不中音。合於桑林之舞,乃中经首之会。

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录