Beispiel #1
0
 protected virtual void OnClientStarted(UdpClientStartedEventArgs e)
 {
     this.ClientStarted?.Invoke(this, e);
 }
Beispiel #2
0
 /// <summary>
 /// 套接字链接
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void AsyncNetUdpClient_ClientStarted(object sender, UdpClientStartedEventArgs e) => this.ViewModel.OutputString = $"套接字链接,{e.TargetHostname}:{e.TargetPort}";