I've just started with Go and have crashed out on the first thing I wanted
to do. I am trying to connect to a piece of hardware that responds to a
socket, err := net.DialUDP("udp4", nil,
n, err := socket.Write(msg)
n, addr, err := socket.ReadFromUDP(resp)
In essence I'm using just these 3 functions.
Wireshark shows me:
42 3.471817 192.168.1.69 255.255.255.255 UDP Source port:
54124 Destination port: 1024
43 3.473027 192.168.1.71 192.168.1.69 UDP Source port: 1024
Destination port: 54124
The response is clearly being sent but ReadFromUDP() does not see it and
after the 5 second timeout reports:
Read returned 0, <nil>, WSARecvFrom udp4 192.168.1.69:59026: resource
Any ideas? I can't find anything helpful on the web except several reports
of similar things.