您的位置:首页 > 理论基础 > 计算机网络

XE8-indy10中TIdTCPConnection.Connected函数的源码

2015-09-23 11:19 633 查看
indy10中TIdTCPConnection.Connected函数的源码:

function TIdTCPConnection.Connected: Boolean;
var
// under ARC, convert a weak reference to a strong reference before working with it
LIOHandler: TIdIOHandler;
begin
// Its been changed now that IOHandler is not usually nil, but can be before the initial connect
// and also this keeps it here so the user does not have to access the IOHandler for this and
// also to allow future control from the connection.
LIOHandler := IOHandler;
Result := Assigned(LIOHandler);
if Result then begin
Result := LIOHandler.Connected;
end;
end;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: