private void button1_Click(object sender, EventArgs e) { int port = Convert.ToInt32(maskedTextBox1.Text); mServer.StartListeningForIncomingConnection(); conwindow.AppendText(string.Format("{0} - We started listening already {1}", Now, Environment.NewLine)); }
private void btnAcceptIncomingAsync_Click(object sender, EventArgs e) { if (ip != null && serverPortNumber != 0) { serverIp = IPAddress.Parse(ip); mServer.StartListeningForIncomingConnection(serverIp, serverPortNumber); } if (ip != null) { serverIp = IPAddress.Parse(ip); mServer.StartListeningForIncomingConnection(serverIp); } else { mServer.StartListeningForIncomingConnection(); } }
private void btnAcceptIncomingAsync_Click(object sender, EventArgs e) { mServer.StartListeningForIncomingConnection(); }
private void btnAcceptIncomingAsync_Click(object sender, EventArgs e) { mServer.StartListeningForIncomingConnection(); txtConsole.AppendText(string.Format("{0} - Listening for incoming connections {1}", DateTime.Now, Environment.NewLine)); }