Example #1
0
        public static ITcpServerConfig CopyInh(ITcpServerConfig src)
        {
            if (src == null)
            {
                return(null);
            }

            if (src.GetType() == typeof(TcpServerConfigImplement))
            {
                return(((TcpServerConfigImplement)src).Copy());
            }
            if (src.GetType() == typeof(TcpServerConfigImplement))
            {
                return(((TcpServerConfigImplement)src).Copy());
            }

            throw new Exception("Unknown type: " + src.GetType().ToString());
        }
Example #2
0
 /// <summary>
 /// Creates a new TcpServer
 /// </summary>
 public TcpServer(IFastCgiChannelFactory factory, ITcpServerConfig config)
     : this(config.Address, config.Port, factory)
 {
 }
Example #3
0
 public void SetTcpServerConfigVal(ITcpServerConfig value)
 {
     _tcpServerConfig = value;
 }
Example #4
0
 /// <summary>
 /// Creates a new TcpServer
 /// </summary>
 public TcpServer(IFastCgiChannelFactory factory, ITcpServerConfig config)
     : this(config.Address, config.Port, factory)
 {
 }