在C#中使用TcpClient的或一般连接到插座我怎么能先检查如果某个端口是免费在我的机器上?
更多信息: 这是我使用的代码:
TcpClient c; //I want to check here if port is free. c = new TcpClient(ip, port);
.net c# tcp tcpclient
.net ×1
c# ×1
tcp ×1
tcpclient ×1