Delphi Unigui获取连接的客户端列表


本文整理自网络,侵删。

 
Unigui获取连接的客户端列表

var
  I : Integer;
  ASessionList: TList;
  ASession : TUniGUISession;
begin
  memo1.Clear;
  ASessionList:=UniServerModule.SessionManager.Sessions.SessionList.LockList;
  try
        for I := 0 to ASessionList.Count-1 do
        begin
        ASession := TUniGUISession(ASessionList[I]);
        if not ASession.IsTerminated then
          memo1.Lines.Add( ASession.UniApplication.RemoteAddress );
        end;
  finally
        UniServerModule.SessionManager.Sessions.SessionList.UnlockList;
  end;

https://blog.csdn.net/shuiying/article/details/8967738

相关阅读 >>

Delphi tthread线程同步

Delphi 读url下txt中的下载地址的简单下载者代码

Delphi 10.3.x 截取字符串函数substring 和copy()常用字串符处理函数用法

Delphi idmessage1 idsmtp1 发送邮件支持https

Delphi改变图片的像素,即大小

行为判断Delphi中窗体最大化与最小化事件

Delphi带进度条复制文件函数

Delphi inifile to xml

Delphi gmt时间与tdatetime转换

Delphi concat 连接两个或多个字符串为一个字符串

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...