{"published":"2021-09-11 15:09:04","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2021%2F09%2F11%2F150904\" title=\"C++20&amp;Win API IPv4\u30a2\u30c9\u30ec\u30b9\u3092\u5217\u6319\u3059\u308b - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","categories":["C++","Windows"],"width":"100%","author_name":"potisan","provider_url":"https://hatena.blog","image_url":null,"height":"190","blog_url":"https://potisan-programming-memo.hatenablog.jp/","provider_name":"Hatena Blog","type":"rich","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","title":"C++20&Win API IPv4\u30a2\u30c9\u30ec\u30b9\u3092\u5217\u6319\u3059\u308b","author_url":"https://blog.hatena.ne.jp/potisan/","url":"https://potisan-programming-memo.hatenablog.jp/entry/2021/09/11/150904","description":"Windows\u3067IPv4\u30a2\u30c9\u30ec\u30b9\u3092\u5217\u6319\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002 GetIpAddrTable\u95a2\u6570\u306f\u30e1\u30e2\u30ea\u306b\u69cb\u9020\u4f53\u3068\u305d\u3053\u304b\u3089\u53c2\u7167\u3055\u308c\u308b\u6587\u5b57\u5217\u3092\u307e\u3068\u3081\u3066\u914d\u7f6e\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f\u305d\u308c\u3089\u3092\u307e\u3068\u3081\u3066\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u306a\u304a\u3001\u3053\u306e\u95a2\u6570\u306f\u30eb\u30fc\u30d7\u30d0\u30c3\u30af\u30a2\u30c9\u30ec\u30b9\u3082\u8fd4\u3057\u307e\u3059\u3002 #include <bit> // bit_cast #include <format> #include <iostream> #include <string> #include <vector> #define STRICT #include <WinSock2.h> // \u6700\u521d\u306b\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u306a\u3044\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u2026"}