static void Main(string[] args) { AsyncSocketServer server = new AsyncSocketServer(); server.StartListening(); Console.ReadLine(); }
private void btn_Ascolta_Click(object sender, RoutedEventArgs e) { mServer.StartListening(); timer = new DispatcherTimer(); timer.Interval = new TimeSpan(0, 0, 10); timer.Tick += Timer_Tick; timer.Start(); }
private void btn_Ascolta_Click(object sender, RoutedEventArgs e) { mServer.StartListening(); timer = new DispatcherTimer(); timer.Interval = new TimeSpan(0, 0, 10); timer.Tick += Timer_Tick; timer.Start(); btn_Ascolta.IsEnabled = false; btn_Disconetti.IsEnabled = true; }
static void Main(string[] args) { PrevServer(); InitServer(); server.StartListening(_PORT); // μμΌ μμ }