public void Close() { if (m_close) { return; } m_close = true; if (Client != null) { Client.Close(); } Server.Close(Port); }