public LeechServer(LeechPipeServerSocket socket) { _tickPipeServer = null; _core = new LpCore(socket, true); // сервер _pipeFactory = new LeechServerPipeFactory(_core); _sysPipe = new SystemLp(_pipeFactory, _core); _core.Initialize(_sysPipe, "Pulxer", false); }
public LeechServer CreateServer(LeechPipeServerSocket socket) { lock (this) { if (_leechServer != null) { return(null); } _leechServer = new LeechServer(socket); return(_leechServer); } }