public BitTunnelServerProtocol(BitTunnelServerProtocolFactory parent) : base() { _parent = parent; _files = new FileDescriptorLookup(); SetupHandlers(); }
protected override BitTunnelProtocolFactory CreateFactory() { BitTunnelServerProtocolFactory factory = new BitTunnelServerProtocolFactory(this, _serverName); factory.ClientConnected += new EventHandler<IdentificationEventArgs>(factory_ClientConnected); factory.ClientIdentified += new EventHandler<IdentificationEventArgs>(factory_ClientIdentified); factory.ConnectionTerminated += new EventHandler(factory_ConnectionTerminated); factory.AvailableFilesUpdated += new EventHandler<FileListModificationEventArgs>(factory_AvailableFilesUpdated); return factory; }