public IisServer(IFastCgiChannelFactory channelFactory, ILoggerFactory loggerFactory) { var handle = new SafeFileHandle(StandardInputHandle, true); _channelFactory = channelFactory; _logger = loggerFactory.Create(this.GetType()); _server = new FileStream(handle, FileAccess.ReadWrite, 4096, false); _thread = new Thread(this.Run); }
/// <summary> /// Creates a new TcpServer listening on the address and port specified /// </summary> /// <param name="address">Address to listen for incoming connections</param> /// <param name="port">TCP/IP port to listen for incoming connections</param> public TcpServer(IPAddress address, int port, IFastCgiChannelFactory factory) { _channelFactory = factory; _listener = new TcpListener(address, port); }
/// <summary> /// Creates a new TcpServer listening on 127.0.0.1 on the port specified /// </summary> /// <param name="port">TCP/IP port to listen for incoming connections</param> public TcpServer(int port, IFastCgiChannelFactory factory) : this(IPAddress.Any /* Ipv4 */, port, factory) { }
/// <summary> /// Creates a new TcpServer /// </summary> public TcpServer(IFastCgiChannelFactory factory, ITcpServerConfig config) : this(config.Address, config.Port, factory) { }
/// <summary> /// Creates a new TcpServer listening on 127.0.0.1 on port 9000 /// </summary> public TcpServer(IFastCgiChannelFactory factory) : this(IPAddress.Any /* Ipv4 */, DefaultPort, factory) { }