public void Open(IPAddress ip, int port) { if (m_ServerListener != null) { throw new InvalidOperationException("Server was already started."); } m_ServerListener = new TcpServerListener(OnServiceRequest); m_ServerListener.Start(ip, port); }