我有一个代码
*已编辑,带有整个代码片段
Dim receivingUdpClient As New UdpClient(20000)
Dim RemoteIpEndPoint As New IPEndPoint(IPAddress.Any, 0)
Try
Console.WriteLine("listening")
Dim receiveBytes As [Byte]() = receivingUdpClient.Receive(RemoteIpEndPoint)
Dim returnData As String = Encoding.ASCII.GetString(receiveBytes)
Console.WriteLine(receiveBytes)
Catch e As Exception
Console.WriteLine(e.ToString())
End Try
但它给了我一个错误。
在 system.dll 中发生了 system.net.sockets.socketexception' 类型的第一次机会异常
我真的很困惑这意味着什么。