Example #1
0
 private void Listen()
 {
     if (tcpListener.Listening)
     {
         tcpListener.Stop();
     }
     else
     {
         tcpListener.ListenAsync(IpAddressHelper.GetHostIp(), 5000);
     }
 }
Example #2
0
        public ClientForm()
        {
            InitializeComponent();

            //initialzie ui
            StartPosition = FormStartPosition.CenterScreen;

            //initialize data
            txtIp.Text   = IpAddressHelper.GetHostIp();
            txtPort.Text = "5000";
            Env.Initialize(Print);
        }