CentralMine.NET.Listener.Close C# (CSharp) Method

Close() public method

public Close ( ) : void
return void
        public void Close()
        {
            mSocket.Stop();
            mThread.Abort();
        }

Usage Example

        public void Close()
        {
            mUpstream.Destroy();

            // Kill the listener
            mListener.Close();

            // Kill the update thread
            mUpdateThread.Abort();

            // Close all clients
            foreach (Client c in mClients)
            {
                c.Close();
            }

            // Close the event log
            mEventLog.Close();
        }