摘要:
from:http://www.cnblogs.com/keyindex/archive/2010/12/15/1901875.html最近想写一个网络服务器端的程序,想看看在大量客户端数下程序的运行情况。于是对.net 的Socket编程进行了一些研究,发现.net 3.5 里SocketAsyncEventArgs 是基于IOCP实现。MSDN上有相关的示例,但它是基于TCP协议的,而我想要的是基于UDP协议的。网上很难找到基于UDP协议的SocketAsyncEventArgs示例(UDP需要用IOCP吗?),于是决定自己写一个基于UDP协议的SocketAsyncEventArgs示例 阅读全文
posted @ 2012-07-16 20:48
94cool
阅读(1130)
评论(0)
推荐(1)
摘要:
static void Main(string[] args) { float xo = 39.909209536859834f;//圆点x float yo = 116.3225715637207f;//圆点y float x1 = 39.960026f;//圆边上一点坐标x float y1 = 116.38882f;//圆边上一点坐标y Matrix rotation = new Matrix(); rotation.RotateAt(60, new System.Drawing.PointF(xo, yo));//60为... 阅读全文
posted @ 2012-07-16 15:10
94cool
阅读(1607)
评论(0)
推荐(0)
浙公网安备 33010602011771号