Windows窗体应用程序中的套接字IPEndPoint

时间:2011-08-07 14:09:25

标签: c# .net sockets communication

我有错误。码: enter image description here

我的代码我不能使用IPEndPoint,但在Console App中我可以做到。我怎样才能重新获得它,以及最初的问题?

1 个答案:

答案 0 :(得分:5)

您需要包含名称空间System.Net - 您已包含System.Net.Sockets但类IPEndPoint不在此命名空间中。

相关问题