{"type":"rich","author_name":"shammer","version":"1.0","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","height":"190","width":"100%","published":"2012-09-06 00:00:00","categories":["Python"],"title":"UDP send client with sticky source port","blog_title":"Shammer's Philosophy","description":"UDP send client - Shammerism\u3067\u306f\u3001\u5358\u306b\u30c7\u30fc\u30bf\u3092\u9001\u308b\u3068\u3044\u3046\u3060\u3051\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u66f8\u3044\u305f\u3002\u3057\u304b\u3057\u3001\u7a00\u306b\u9001\u4fe1\u30dd\u30fc\u30c8\u3092\u56fa\u5b9a\u3057\u305f\u3044\u3068\u601d\u3046\u3068\u304d\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u5b9f\u73fe\u3059\u308b\u3088\u3046\u306b\u4e00\u884c\u3070\u304b\u308a\u8ffd\u52a0\u3057\u305f\u3002\u30b5\u30fc\u30d0\u30fc\u3068\u540c\u3058\u3088\u3046\u306b\u3001bind \u3057\u3066\u3084\u308c\u3070\u3044\u3044\u3002 import socket import time from contextlib import closing def main(): host = '192.168.1.101' port = 12345 count = 0 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) \u2026","image_url":null,"blog_url":"https://shammerism.hatenadiary.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshammerism.hatenadiary.com%2Fentry%2F20120906%2Fp1\" title=\"UDP send client with sticky source port - Shammer&#39;s Philosophy\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/shammer/","url":"https://shammerism.hatenadiary.com/entry/20120906/p1"}