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

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

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

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

            SLClient = null;
        }