07 2012 档案

摘要: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 阅读(1112) 评论(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 阅读(1597) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示