whisht

    十年

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年6月22日

摘要: 转自论坛:http://topic.csdn.net/u/20100603/13/ef349c6e-66ee-4129-a884-61c9091a9a99.htmlusing System.Net.NetworkInformation;/// <summary>/// 获取第一个可用的端口号/// </summary>/// <returns></returns>public static int GetFirstAvailablePort(){ int MAX_PORT = 6000; //系统tcp/udp端口数最大是65535 int BE 阅读全文
posted @ 2012-06-22 16:29 WHISHT 阅读(3586) 评论(0) 推荐(0) 编辑