获取本机可用端口
摘要:
如下:using System;using System.Collections.Generic;using System.Linq;using System.Net.NetworkInformation;namespace ConsoleApplication2{ public static class AvailablePort { /// public static int GetFirstAvailablePort() { const int MAX_PORT = 65535; cons... 阅读全文
posted @ 2013-08-14 20:07 yao2yao4 阅读(363) 评论(0) 推荐(0) 编辑