摘要: IAsyncResult ar = tcpClient.BeginConnect(ip,port,null,null); bool success = ar.AsyncWaitHandle.WaitOne(1000); if (!success) throw new Exception("超时时间已 阅读全文
posted @ 2016-02-16 10:41 逍遥子k 阅读(4475) 评论(0) 推荐(0) 编辑