随笔分类 -  通信(tcp/udp/socket)

摘要:PC=PV/T*C*t*f其中,PC是并发数,T是观测时间,即产生PV的时间长度,比如一天中的14个小时产生了20万并发,则公式中T=14*60*60秒,PV=20万。C是单个页面请求的HTTP连接数,t是连接的持续时间,一般取一个估计用户等待连接的时长,比如用户在平均等待5秒发现网页还没打开就不耐 阅读全文
posted @ 2013-12-26 08:23 liulun 阅读(2614) 评论(0) 推荐(0) 编辑
摘要:原文地址:http://www.infoq.com/news/2012/03/websocket-windows鉴于Windows 8客户预览版已经很好的支持WebSocket协议和WebSocket APIasp.net 开发人员可以使用System.Web.Websockets类库来实现双向通信的功能在windows 8客户预览版和Server beta版本中IE10、所有的微软WebSocket客户端和服务端功能都支持最新版本的 IETF WebSocket 协议另外,IE10还实现了W3C的候选版 WebSocketAPI微软IE团队的官方博客详细解释了这些内容与此同时,ASP.NET 阅读全文
posted @ 2012-03-30 10:29 liulun 阅读(1814) 评论(0) 推荐(2) 编辑
摘要:发送数据:接收数据: 阅读全文
posted @ 2010-03-16 10:47 liulun 阅读(3268) 评论(1) 推荐(1) 编辑
摘要:客户端代码服务端代码 阅读全文
posted @ 2010-03-15 17:33 liulun 阅读(1581) 评论(0) 推荐(0) 编辑
摘要:服务端客户端 阅读全文
posted @ 2010-03-11 09:53 liulun 阅读(4046) 评论(0) 推荐(3) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;u... 阅读全文
posted @ 2009-12-24 11:16 liulun 阅读(1393) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示