{"id":340143,"date":"2021-02-07T06:03:12","date_gmt":"2021-02-06T22:03:12","guid":{"rendered":"http:\/\/4563.org\/?p=340143"},"modified":"2021-02-07T06:03:12","modified_gmt":"2021-02-06T22:03:12","slug":"%e6%9c%ac%e5%9c%b0-udp-socket-sendto-%e9%98%bb%e5%a1%9e","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=340143","title":{"rendered":"\u672c\u5730 UDP socket sendto \u963b\u585e"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u672c\u5730 UDP socket sendto \u963b\u585e               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SilverLink <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5c0f\u5f1f\u6700\u8fd1\u9700\u8981\u5904\u7406\u4e00\u4e2a bug\uff0c\u6ca1\u6709\u601d\u8def\uff0c\u60f3\u54a8\u8be2\u4e0b\u5927\u5bb6<\/p>\n<p>\u95ee\u9898\u53ef\u4ee5\u62bd\u8c61\u4e3a\uff1a\u540c\u4e00 Linux \u4e3b\u673a\u7684\u4e24\u4e2a\u8fdb\u7a0b\uff0c\u4f7f\u7528 AF LOCAL \u7684 UDP socket \u4e92\u76f8\u53d1\u9001\u6d88\u606f\uff0c\u4f46\u662f\u53d1\u9001\u5feb\u5230\u4e00\u5b9a\u7a0b\u5ea6\u51e0 s \u540e\uff0c\u4e24\u4e2a\u8fdb\u7a0b\u5c31\u90fd\u4f1a\u5361\u4f4f\uff0c\u91cd\u542f A \u540e\u5de5\u4f5c\u6b63\u5e38\u3002<\/p>\n<p>\u6839\u636e\u65e5\u5fd7\u548c\u5b9a\u4f4d\uff0c\u60c5\u51b5\u662f\u8fdb\u7a0b A \u6267\u884c\u5230 sendto \u540e\u5361\u4f4f\uff0cB \u5982\u679c\u51c6\u5907\u5411 A \u53d1\u6d88\u606f\uff0c\u5c31\u4e5f\u4f1a\u5728 sendto \u51fd\u6570\u91cc\u51fa\u4e0d\u6765\uff0c\u7136\u540e\u4e32\u53e3\u5c31\u5b89\u9759\u4e86\u3002<\/p>\n<p>\u770b\u8d77\u6765\u5f88\u50cf\u662f\u4e24\u4e2a\u8fdb\u7a0b\u7684\u7f13\u51b2\u533a\u90fd\u6ee1\u4e86\uff0c\u540c\u65f6\u7b49\u5f85\u5bf9\u65b9\u63a5\u6536\uff0c\u5f62\u6210\u6b7b\u9501\u3002\u4f46\u662f\u6211\u8bb0\u5f97 UDP \u6ca1\u6709\u53d1\u7f13\u51b2\u533a\uff0c\u5982\u679c\u63a5\u6536\u65b9\u7684\u6536\u7f13\u51b2\u533a\u6ee1\u4e86\uff0c\u53d1\u9001\u65b9\u5e94\u8be5\u4e5f\u4e0d\u4f1a\u7ba1\uff0c\u800c\u662f\u4efb\u63a5\u6536\u65b9\u4e22\u5f03\uff0c\u4e3a\u4ec0\u4e48\u4f1a\u9677\u5728\u51fd\u6570\u91cc\u51fa\u4e0d\u6765\u5462\uff1f<\/p>\n<p>\u6709\u6ca1\u6709\u4e00\u4e9b\u67e5\u627e\u95ee\u9898\u6839\u6e90\u7684\u601d\u8def<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5256291\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : XiaoxiaoPu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             AF_UNIX \uff08 AF_LOCAL \uff09 SOCK_DGRAM \u5e76\u4e0d\u662f UDP\uff0c\u5b83\u662f\u53ef\u9760\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5256292\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : undef404 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             udp send \u6709\u7f13\u51b2\u7684.<br \/>\u53ef\u4ee5\u6539\u6210 non_block \u6a21\u5f0f, \u5982\u679c buffer \u6ee1\u4e86\u5c31\u5148\u522b\u53d1.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5256293\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : back0893 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             emm<br \/>udp \u4e0d\u662f\u7f13\u5b58\u6ee1\u4e86\u5c31\u81ea\u52a8\u4e22\u5f03\u4e48                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5256294\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Meltdown <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5230\u5e95\u662f UDP \u8fd8\u662f UNIX \u57df\u5957\u63a5\u5b57                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u5730 UDP socket sen&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/340143"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=340143"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/340143\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=340143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=340143"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=340143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}