You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source of a simple UDP echo program attached.
What is the expected output?
It should sit and listen on the designated port, print packet size and content on screen
and echo them back to the sender - at least, that's what it's doing on linux.
What do you see instead?
On windows, the screen fills with zeros. ReadFromUDP() is returning immediately without
error, but with rbytes == 0. netstat shows that the program is listening on the port,
but nothing happens when I send data to it.
Which compiler are you using (5g, 6g, 8g, gccgo)?
8g
Which operating system are you using?
windows XP 64
Which revision are you using? (hg identify)
gowin32 release 2010-11-10
Please provide any additional information below.
(*UDPConn).Read() works as expected, but I can not get the remote host info to send data
back using Read()
(*UDPConn).ReadFrom() is broken in the same manner as ReadFromUDP()
Oops, it should only expect to 'print packet content' not 'print packet size and
content' to screen. I forgot I removed that line while simplifying the code.
by theseeker:
Attachments:
The text was updated successfully, but these errors were encountered: