Example of how to implement a publisher and a subscriber via UDP