一.限制最大连接数,并验证来访者用户身份: procedure TServerContainer1.DSServer1Connect( DSConnectEventObject: TDSConnectEventObject); var sError:string; begin //限制最大连接数,并且验证来访者密码 if (DSConnectEventObject.ChannelInfo = nil) or (FConnections.Count > _MaxConnCount) or (DSC
转载:http://blogs.embarcadero.com/jimtierney/2009/04/06/31461/ DataSnap Server Method Stream Parameters This is a continuation of my posts on DataSnap server method parameters and return types. This post is about TStream and TDBXStreamValue. The s
datasnap的线程池 新的datasnap使用INDY10的线程池.不管你知不知道,DATASNAP都是使用线程池了,这和MIDAS不同,MIDAS默认是没有线程池的. 跟踪INDY10线程池类TIdSchedulerOfThreadPool的代码: procedure TIdSchedulerOfThreadPool.Init;begin inherited Init; Assert(FThreadPool<>nil); if not IsDesignTime then begin