UDP header に入ってるサイズ情報とは別にアプリケーション層でサイズ情報を用意して、最初の数 byte にサイズを入れ、それだけ peek してそのあと改めて拡張して recv とかかな
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.