BF2Statistics.Gamespy.CDKeyServer.Shutdown C# (CSharp) Method

Shutdown() public method

Closes the underlying socket
public Shutdown ( ) : void
return void
        public void Shutdown()
        {
            base.ShutdownSocket();
            base.Dispose();
        }

Usage Example

        /// <summary>
        /// Shutsdown all of the Gamespy Servers
        /// </summary>
        public static void Shutdown()
        {
            // Shutdown Login Servers
            ClientManager.Shutdown();
            SearchProvider.Shutdown();
            MasterServer.Shutdown();
            CDKeyServer.Shutdown();

            // Update status
            bIsRunning = false;

            // Trigger the OnShutdown Event
            Stopped();
        }