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 spy++ 拖拽功能

Delphi隐藏进程

Delphi 判断系统服务是否运行

关于Delphi xe5 firemonkey 手机屏幕自适应程序问题

Delphi vista和win7下如何弹出uac

Delphi分享pos函数。(比fastpos还要快)

Delphi 与 graphics gdi+ 基础学习

Delphi android 平台加载文件

Delphi实例之一个较复杂的记事本的实现

Delphi 图像二值化

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



打赏

取消

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

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

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

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

评论

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