How to convert TCP to UDP using play framework

I have followed the code which is available in the link I have Configured it in my application.I’m trying to call them getting error’s. But unable to run the code.
Any kind of guidance or suggestion is their means kindly help me.
Need to do changes in Play Framework main source code means where I need to do or else any other way to convert TCP to UDP using simple play app. kindly provide suggestions ?