server now has 'on' and 'send' methods, so that logic can be free from the udp details