{"height":"190","author_url":"https://blog.hatena.ne.jp/ganmacs/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fganmacs.hatenablog.com%2Fentry%2F2017%2F05%2F14%2F233104\" title=\"\u7c21\u5358\u306a UDP client / server in golang - memo-mode\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u7c21\u5358\u306a UDP client / server in golang","description":"UDP server \u3068 client \u306e\u899a\u66f8\u3002Ping \u3092\u9001\u3063\u3066 Pong \u3068\u5e30\u3063\u3066\u304f\u308b\u3060\u3051\u306e\u96d1\u306a\u3084\u3064\u3002 \u7279\u306b\u96e3\u3057\u3044\u3068\u3053\u308d\u3082\u306a\u304f\u3053\u306e\u8fba \u307f\u306a\u304c\u3089\u3084\u308b\u3068\u7c21\u5358\u306b\u3067\u304d\u308b\u3002 server \u5074 \u30b5\u30fc\u30d0\u5074\u3067\u306f 127.0.0.1:8080 \u3092listen \u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3002 \u4f55\u304b\u9001\u3089\u308c\u3066\u304d\u305f\u3089\u305d\u308c\u3092\u8aad\u3093\u3067\u3001\u9001\u3063\u3066\u304d\u305f\u76f8\u624b\u306b Pong \u3068\u8fd4\u3059\u30b5\u30fc\u30d0\u3002 package main import ( \"log\" \"net\" \"os\" ) func main() { udpAddr := &net.UDPAddr{ IP: net.ParseIP(\"127.0.0.1\"), Port: 8080, } updL\u2026","blog_url":"https://ganmacs.hatenablog.com/","url":"https://ganmacs.hatenablog.com/entry/2017/05/14/233104","author_name":"ganmacs","categories":["golang","zatsu"],"width":"100%","published":"2017-05-14 23:31:04","type":"rich","provider_name":"Hatena Blog","version":"1.0","provider_url":"https://hatena.blog","blog_title":"memo-mode","image_url":null}