Was trying out this system, but I found out a issue.
The "c.SendTo(returnData)" is bugged, as it somehow is getting nil, same for c.RemoteAddr(), if I access that in the go func(), it's gone or overwritten by something not able to be used.
It works if I remove the go func(){}(), but then it's performance goes down the drain.
Anybody able to figure out what I could do to make it properly work ?
[edit] Correction, without go func() it doesn't work either.
Should work, but somehow the connection is just, gone...
Was trying out this system, but I found out a issue. The "c.SendTo(returnData)" is bugged, as it somehow is getting nil, same for c.RemoteAddr(), if I access that in the go func(), it's gone or overwritten by something not able to be used. It works if I remove the go func(){}(), but then it's performance goes down the drain. Anybody able to figure out what I could do to make it properly work ?
[edit] Correction, without go func() it doesn't work either. Should work, but somehow the connection is just, gone...