Example #1
0
        public void StopClient()
        {
            try
            {
                if (SLClient == null)
                {
                    return;
                }

                SLClient.Shutdown(SocketShutdown.Both);
                SLClient.Close();
                SLClient = null;
            }
            catch
            {
            }
        }
Example #2
0
        public void StopClient()
        {
            try
            {
                if (SLClient == null)
                {
                    return;
                }

                SLClient.Shutdown(SocketShutdown.Both);
                SLClient.Close();
                SLClient = null;
            }
            catch (Exception ex)
            {
                ex.ToOutput();
            }
        }
Example #3
0
        public void Stop()
        {
            TimrMain.Enabled = false;

            try
            {
                if (SLClient == null)
                {
                    return;
                }
                SLClient.Shutdown(SocketShutdown.Both);
                SLClient.Close();
            }
            catch
            {
            }

            SLClient = null;
        }