I am trying to create an application to receive multicast UDP packets. This application does not only listen for incoming packets but also does many other tasks as well. So, I wanted to keep receiving part async. I program in Golang.
Any help would be appreciated, happy coding..
Well, I think you could put the listener into a for declaration and every time that you receive a package from the listener you could execute what do you want in a goroutine.
an example can be here and look in the section SERVER IMPLEMENTATION