{"title":" getaddrinfo() \u3092\u8a66\u3059","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdayflower.hatenablog.com%2Fentry%2F20080514%2F1210742032\" title=\" getaddrinfo() \u3092\u8a66\u3059 - daily dayflower\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"dayflower","blog_title":"daily dayflower","published":"2008-05-14 14:13:52","url":"https://dayflower.hatenablog.com/entry/20080514/1210742032","provider_name":"Hatena Blog","categories":["linux","memo"],"author_url":"https://blog.hatena.ne.jp/dayflower/","description":"\u3055\u3063\u304d\u306e\u7d9a\u304d\u3002gethostbyname() \u306f obsolete \u3060\u304b\u3089 getaddrinfo() \u3092\u4f7f\u3063\u3066\u306d\uff0c\u3068 man \u306b\u66f8\u3044\u3066\u3042\u3063\u305f\u306e\u3067\uff0cgetaddrinfo() \u3060\u3068\u3069\u3046\u306a\u306e\u304b\u8abf\u3079\u3066\u307f\u308b\u3002 #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <netinet/in.h> #include <arpa/inet.h> int main(int argc, char *argv[]) { struct addr\u2026","width":"100%","height":"190","version":"1.0","image_url":null,"blog_url":"https://dayflower.hatenablog.com/","type":"rich"}