How to set up an simple UDP-Listener

By this, I mean that how can we create a class that creates the socket, how can we create the function to receive the data, and how can we access that in the blueprints?

Thanks. Help would be greatly appreciated.