asp.net中关于GPS的一些问题


asp.net中怎么接收和解析GPS终端发送的udp数据包

c# asp.net

初音感谢祭 12 years, 11 months ago

IPEndPoint RemoteIpEndPoint = new IPEndPoint(IPAddress.Any, 端口号);
UdpClient uu = new UdpClient(RemoteIpEndPoint);
Byte[] receiveBytes = uu.Receive(ref RemoteIpEndPoint);
string value = Encoding.ASCII.GetString(receiveBytes);
value 就是接收到的数据包。

ntower answered 12 years, 11 months ago

Your Answer