serializing message and sending over udp