added templates for UDP server and client