Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
		/// <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);
		}
Example #4
0
		/// <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)
		{
		}
Example #5
0
 /// <summary>
 /// Creates a new TcpServer
 /// </summary>
 public TcpServer(IFastCgiChannelFactory factory, ITcpServerConfig config)
     : this(config.Address, config.Port, factory)
 {
 }
Example #6
0
 /// <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)
 {
 }
Example #7
0
 /// <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);
 }
Example #8
0
 /// <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)
 {
 }
Example #9
0
 /// <summary>
 /// Creates a new TcpServer
 /// </summary>
 public TcpServer(IFastCgiChannelFactory factory, ITcpServerConfig config)
     : this(config.Address, config.Port, factory)
 {
 }
Example #10
0
 /// <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)
 {
 }