/// <summary>Configure a new daemon for the specified network address.</summary> /// <remarks>Configure a new daemon for the specified network address.</remarks> /// <param name="addr"> /// address to listen for connections on. If null, any available /// port will be chosen on all network interfaces. /// </param> public Daemon(IPEndPoint addr) { myAddress = addr; processors = new ThreadGroup("Git-Daemon"); repositoryResolver = RepositoryResolver <DaemonClient> .NONE; uploadPackFactory = new _UploadPackFactory_112(this); receivePackFactory = new _ReceivePackFactory_123(this); services = new DaemonService[] { new _DaemonService_143(this, "upload-pack", "uploadpack" ), new _DaemonService_158(this, "receive-pack", "receivepack") }; }
/// <summary>Set the factory to construct and configure per-request ReceivePack.</summary> /// <remarks>Set the factory to construct and configure per-request ReceivePack.</remarks> /// <param name="factory">the factory. If null receive-pack is disabled.</param> public virtual void SetReceivePackFactory(ReceivePackFactory <DaemonClient> factory ) { if (factory != null) { receivePackFactory = factory; } else { receivePackFactory = ReceivePackFactory <DaemonClient> .DISABLED; } }