R
rihua
Unregistered / Unconfirmed
GUEST, unregistred user!
参考以前的帖子应该是用AThread.Connection.CurrentReadBufferSize,不过编译在这句出错,没有CurrentReadBufferSize这个函数,大家看看怎么办,谢谢大家帮忙。
procedure TForm1.IdTCPServer1Execute(AThread: TIdPeerThread);
var
..
size:integer;
begin
AThread.Connection.ReadFromStack;
Size:=AThread.Connection.CurrentReadBufferSize;
...
end
procedure TForm1.IdTCPServer1Execute(AThread: TIdPeerThread);
var
..
size:integer;
begin
AThread.Connection.ReadFromStack;
Size:=AThread.Connection.CurrentReadBufferSize;
...
end