Changeset 89 for branches/DirectWeb/UTCPServer.pas
- Timestamp:
- Dec 18, 2009, 1:42:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DirectWeb/UTCPServer.pas
r88 r89 101 101 102 102 constructor TTCPServer.Create; 103 var104 I: Integer;105 103 begin 106 104 ThreadPool := TClientThreadedPool.Create; 107 105 ThreadPool.TotalCount := 10; 106 ThreadPool.Active := True; 108 107 109 108 Socket := TTCPBlockSocket.Create; … … 146 145 if Assigned(Parent.FOnClientConnect) then 147 146 Parent.FOnClientConnect(Self); 147 148 Parent.ThreadPool.Release(Self); 148 149 end; 149 150 … … 166 167 I: Integer; 167 168 begin 168 if not FActive and Active then begin 169 Allocate; 169 if not FActive and AValue then begin 170 170 for I := 0 to TotalCount - 1 do begin 171 171 TThreadedPoolItem(Items[I]).Item := TTCPClientThread.Create; 172 172 end; 173 173 end else 174 if FActive and not A ctive then begin174 if FActive and not AValue then begin 175 175 176 176 end; 177 FActive := A ctive;177 FActive := AValue; 178 178 end; 179 179
Note:
See TracChangeset
for help on using the changeset viewer.