2015年12月25日

WPF中使用定时器 DispatcherTimer 做TCP连接中的心跳 HeartBeat

摘要: 开发过程中经常遇到定时触发的需求,如:TCP/IP连接中,使用心跳包保持连接或检测连接是否已经中断。WPF中有多种定时器:1.using System.Windows.Threading;代码如下:using System.Windows.Threading;public partial class... 阅读全文

posted @ 2015-12-25 11:28 lopengye 阅读(1712) 评论(3) 推荐(0)

导航