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 ado通用操作数据单元

Delphi开发firemonkey应用程序时无法打开窗体的解决

Delphi 动态调整打印机纸张大小

Delphi winapi: getactivewindow - 获取当前活动窗口的句柄

firemonkey 手机 app 的手势

Delphi 递归算法遍历文件

Delphi 扫雷外挂

Delphi xe5 android 开发实现手机打电话和发短信

使用indy解决base64回车换行问题

Delphi内存映射大文件

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



打赏

取消

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

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

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

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

评论

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