Exemplo n.º 1
0
 //构造函数
 public TcpServer(TcpServerConfig config, ILoger loger)
 {
     this.Config = config;
     endPoint = new IPEndPoint(IPAddress.Parse(config.IP), config.Port);
     this.sessionPool = new TcpSessionPool();
     this.sessionPool.TcpServer = this;
     this.Loger = loger;
 }
Exemplo n.º 2
0
 //构造函数
 public TcpServer(TcpServerConfig config, ILoger loger)
 {
     this.Config                = config;
     endPoint                   = new IPEndPoint(IPAddress.Parse(config.IP), config.Port);
     this.sessionPool           = new TcpSessionPool();
     this.sessionPool.TcpServer = this;
     this.Loger                 = loger;
 }