private NetServer(INetServerHandler handler, IPAddress localIPAddress, int listenPort, string rsaKey) { m_Handler = handler; Address = localIPAddress; Port = listenPort; RsaKey = rsaKey; if (!Rsa.CheckIsKey(rsaKey)) { throw new Exception(string.Format("RasKey error {0}", rsaKey)); } m_Socket = new Socket(Address.AddressFamily, SocketType.Stream, ProtocolType.Tcp); }