Exemple #1
0
        /// <summary>
        /// Used to stop the broadcast of the current match
        /// </summary>
        public void StopMatchBroadcast()
        {
            if (!IsBroadcastingMatch)
            {
                return;
            }

            IsBroadcastingMatch = false;
            LANMatchSendThread.Abort();
            LANMatchSocket.Close();
        }
Exemple #2
0
        /// <summary>
        /// Function used to start recieving LAN matches
        /// </summary>
        public void StopLANMatchRecieve()
        {
            if (!IsSearchingForMatches)
            {
                return;
            }

            Log("Stop LAN listen");

            IsSearchingForMatches = false;
            LANMatchRecieveThread.Abort();
            LANMatchSocket.Close(1);
        }