var I: Integer; ConnContext: TIdContext; begin with IdTCPServer1.Contexts.LockList do try for I := 0 to Count - 1 do begin ConnContext := TIdContext(Items[I]); ConnContext.Connection.IOHandler.Write(…); end; finally IdTCPServer1.Contexts.UnlockList; end; end; ————————————————
原文链接:https://blog.csdn.net/yygyyygy1233/article/details/104725205
Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号
执行时间: 0.050873041152954 seconds