A class which acts as proxy for a socket connection.
Beispiel #1
0
        private void StopBTN_Click(object sender, EventArgs e)
        {   
            try
            {
                if (m_server != null)
                {
                    m_server.Stop();
                    m_server = null;
                }

                StopBTN.Enabled = false;
            }
            catch (Exception exception)
            {
				GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }
Beispiel #2
0
        private void StartBTN_Click(object sender, EventArgs e)
        {   
            try
            {
                if (m_server != null)
                {
                    m_server.Stop();
                    m_server = null;
                }

                m_server = new Server(ListenerUrlTB.Text, ServerUrlTB.Text);
                m_server.Start();

                StopBTN.Enabled = true;
            }
            catch (Exception exception)
            {
				GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }