/// <summary> /// Halts the server. /// </summary> public void StopListening() { MainSocket.Shutdown(SocketShutdown.Receive); }