J jjweb Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-17 #1 在阻塞模式下,服务端收到数据后,会触发什么事件? 据说不是用onclientread事件,请问应该在什么地方读?最好有个例子。
G glacieret Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-18 #3 procedure TClientHandleThread.ReceiveAction; var LTL : Integer; begin try FHead := FClient.ReadString(5);// FClient: TIdTCPClient; LTL := StrToInt(trim(FHead)); FText := FClient.ReadString(LTL); except FClient.Disconnect; end; end;
procedure TClientHandleThread.ReceiveAction; var LTL : Integer; begin try FHead := FClient.ReadString(5);// FClient: TIdTCPClient; LTL := StrToInt(trim(FHead)); FText := FClient.ReadString(LTL); except FClient.Disconnect; end; end;