Sending UDP Packets

Good evening everyone.
In the project I'm working on I need to send UDP packets (multicast) according to the structure that is represented on page 7 of the file at the link I've put below. But after days of online research I don't know how to do it. Can someone help me?