S
sbzldlb
Unregistered / Unconfirmed
GUEST, unregistred user!
QQClientSocket.Socket.SendText(SendStr);
FStream:=TStream.Create;
While QQClientSocket.Activedo
begin
ZeroMemory(@FBufByte,sizeof(FBufByte));
RecLengthOnce:=QQClientSocket.Socket.ReceiveBuf(FBufByte,sizeof(FBufByte));
if RecLengthOnce=0 then
break;
FStream.Write(FBufByte,RecLengthOnce);
memo1.Lines.LoadFromStream(FStream);
application.ProcessMessages;
end;
FStream:=TStream.Create;
While QQClientSocket.Activedo
begin
ZeroMemory(@FBufByte,sizeof(FBufByte));
RecLengthOnce:=QQClientSocket.Socket.ReceiveBuf(FBufByte,sizeof(FBufByte));
if RecLengthOnce=0 then
break;
FStream.Write(FBufByte,RecLengthOnce);
memo1.Lines.LoadFromStream(FStream);
application.ProcessMessages;
end;