Changed using of buffer for udp server.