Improvements in code flow of listner & talker prog

Divided the code into logical functions to make the code easily reusable.
Other minor code improvements.
Braces in defines, server port fixed in listener & word client replaced by listener in listener.c
Added Listener & Talker using datagram sockets.