void OnServerConnected(object sender, IPEndPointEventArgs e) { //IPEndPointEventArgs e_ = new this.ClientIPEP = new IPEndPoint(e.IPEndPoint.Address, e.IPEndPoint.Port); IPEndPoint ipEndPoint = e.IPEndPoint; IPAddress ip = ipEndPoint.Address; int port = ipEndPoint.Port; string s = "Client connected: " + ip.ToString() + ":" + port; UpdateConnectedClients(s); }
void OnServerDisconnected(object sender, IPEndPointEventArgs e) { }