$peeraddr = $sock->recv($packet, $maxpacketsize); # 2048 should work fine as maxpacketetsize