/// <summary> /// 服务器断开连接 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnServerDisContect_Click(object sender, RoutedEventArgs e) { UDPServer.Disconnect(); }
protected override void OnStop() { socketServer.Disconnect(); }