string message = "0302";
byte[] sendbytes = Encoding.ASCII.GetBytes(message);
remoteIpep = new IPEndPoint(IPAddress.Parse(ip), 26); // 发送到的IP地址和端口号
sendUdpClient.Send(sendbytes, sendbytes.Length, remoteIpep);
时间: 2024-10-23 03:46:27