会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欢迎来到城的Blog
博客园
首页
新随笔
联系
订阅
管理
2006年6月22日
Socket和TcpClient怎样才能知道跟对方断开了没有?
摘要: while(bools) { try { if(newSocket[i2].Poll(-1,SelectMode.SelectRead)) { if(newSocket[i2].Availabl...
阅读全文
posted @ 2006-06-22 22:11 城
阅读(984)
评论(0)
推荐(0)
HTTP下载(doc)
摘要: System.Net.WebClient webClient=new System.Net.WebClient();Stream stream = webClient.OpenRead(SourceURL);byte[] arrByte = new byte[1024];long completedByteCount = 0;if (File.Exists(DestPath)){File.Dele...
阅读全文
posted @ 2006-06-22 19:52 城
阅读(480)
评论(2)
推荐(0)
公告