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 xe8 中tidtcpclient的writeln编码变化

Delphi 编写网址加密解密代码

Delphi 字符串、文件路径 排序算法

Delphi android gps服务

Delphi 全局键盘钩子(wh_keyboard)

Delphi 写的经常用到的加解密函数

Delphi时间格式错误

Delphi android控制睡眠

Delphi combobox的属性和事件、及几个鼠标事件的触发

Delphi 隐藏桌面图标和任务栏

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



打赏

取消

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

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

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

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

评论

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