{"id":21752,"date":"2024-08-13T10:58:58","date_gmt":"2024-08-13T02:58:58","guid":{"rendered":"https:\/\/aif.amtbbs.org\/?p=21752"},"modified":"2024-08-13T10:58:58","modified_gmt":"2024-08-13T02:58:58","slug":"python%e7%bd%91%e7%bb%9c%e7%bc%96%e7%a8%8b%e5%ae%9e%e6%88%98%e6%8c%87%e5%8d%97%ef%bc%9atcp%e5%8d%8f%e8%ae%ae%e6%8e%a2%e7%b4%a2%e4%b8%8e%e7%bc%96%e7%a8%8b%e5%ae%9e%e4%be%8b%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"https:\/\/aif.amtbbs.org\/index.php\/2024\/08\/13\/21752\/","title":{"rendered":"Python\u7f51\u7edc\u7f16\u7a0b\u5b9e\u6218\u6307\u5357\uff1aTCP\u534f\u8bae\u63a2\u7d22\u4e0e\u7f16\u7a0b\u5b9e\u4f8b\u89e3\u6790"},"content":{"rendered":"<div class=\"article-desc\">TCP\uff08Transmission Control Protocol\uff09\u662f\u4e00\u79cd\u9762\u5411\u8fde\u63a5\u7684\u3001\u53ef\u9760\u7684\u3001\u57fa\u4e8e\u5b57\u8282\u6d41\u7684\u4f20\u8f93\u5c42\u534f\u8bae\u3002\u800cIP\uff08Internet Protocol\uff09\u5219\u662f\u4e92\u8054\u7f51\u4e0a\u7684\u7f51\u7edc\u5c42\u534f\u8bae\u3002TCP\/IP\u534f\u8bae\u65cf\u662f\u4e92\u8054\u7f51\u901a\u4fe1\u7684\u57fa\u7840\u3002<\/div>\n<div id=\"postspictures\" class=\"article-content\">\n<div id=\"container\" class=\"container am-engine\" data-v-1d7a5742=\"\" data-element=\"root\">\n<p><img data-dominant-color=\"838da1\" data-has-transparency=\"false\" style=\"--dominant-color: #838da1;\" loading=\"lazy\" decoding=\"async\" class=\"not-transparent alignnone size-full wp-image-21754\" src=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/08\/11926fdd-389b-4f31-965f-27ac00a5cbb7-300x199-1.png\" width=\"300\" height=\"199\" alt=\"\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/08\/11926fdd-389b-4f31-965f-27ac00a5cbb7-300x199-1.png 300w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2024\/08\/11926fdd-389b-4f31-965f-27ac00a5cbb7-300x199-1-150x100.png 150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u7f51\u7edc\u7f16\u7a0b\u5728\u5f53\u4eca\u6570\u5b57\u5316\u4e16\u754c\u4e2d\u626e\u6f14\u7740\u81f3\u5173\u91cd\u8981\u7684\u89d2\u8272\uff0cPython\u4f5c\u4e3a\u4e00\u79cd\u591a\u529f\u80fd\u7f16\u7a0b\u8bed\u8a00\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5e93\u548c\u6a21\u5757\u6765\u652f\u6301\u7f51\u7edc\u7f16\u7a0b\u3002\u672c\u6587\u5c06\u5e26\u4f60\u6df1\u5165\u4e86\u89e3 Python \u4e2d\u7684 TCP \u534f\u8bae\uff0c\u4ecb\u7ecd\u7f51\u7edc\u7f16\u7a0b\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u5e76\u63d0\u4f9b\u4e30\u5bcc\u7684\u793a\u4f8b\u4ee3\u7801\u4ee5\u5e2e\u52a9\u521d\u5b66\u8005\u4ece\u96f6\u5f00\u59cb\u5b66\u4e60\u3002<\/p>\n<h3>1. \u4ec0\u4e48\u662fTCP\/IP\u534f\u8bae<\/h3>\n<p>TCP\uff08Transmission Control Protocol\uff09\u662f\u4e00\u79cd\u9762\u5411\u8fde\u63a5\u7684\u3001\u53ef\u9760\u7684\u3001\u57fa\u4e8e\u5b57\u8282\u6d41\u7684\u4f20\u8f93\u5c42\u534f\u8bae\u3002\u800cIP\uff08Internet Protocol\uff09\u5219\u662f\u4e92\u8054\u7f51\u4e0a\u7684\u7f51\u7edc\u5c42\u534f\u8bae\u3002TCP\/IP\u534f\u8bae\u65cf\u662f\u4e92\u8054\u7f51\u901a\u4fe1\u7684\u57fa\u7840\u3002<\/p>\n<p>Python\u5185\u7f6e\u4e86\u00a0socket\u00a0\u6a21\u5757\uff0c\u5141\u8bb8\u4f60\u521b\u5efa\u5957\u63a5\u5b57\u5e76\u6267\u884cTCP\u901a\u4fe1\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528TCP\u5957\u63a5\u5b57\u6765\u5efa\u7acb\u8fde\u63a5\u3002<\/p>\n<h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_0\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\">import socket\r\n\r\n# \u521b\u5efa\u5957\u63a5\u5b57\u5bf9\u8c61\r\nserver_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\r\n\r\n# \u83b7\u53d6\u672c\u5730\u4e3b\u673a\u540d\u548c\u7aef\u53e3\u53f7\r\nhost = socket.gethostname()\r\nport = 12345\r\n\r\n# \u7ed1\u5b9a\u5730\u5740\u548c\u7aef\u53e3\r\nserver_socket.bind((host, port))\r\n\r\n# \u5f00\u59cb\u76d1\u542c\u4f20\u5165\u8fde\u63a5\r\nserver_socket.listen(5)\r\n\r\nprint('\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5...')\r\nwhile True:\r\n    # \u5efa\u7acb\u5ba2\u6237\u7aef\u8fde\u63a5\r\n    client_socket, addr = server_socket.accept()\r\n    print('\u8fde\u63a5\u5730\u5740:', addr)\r\n\r\n    # \u5411\u5ba2\u6237\u7aef\u53d1\u9001\u6d88\u606f\r\n    message = '\u6b22\u8fce\u8bbf\u95ee\u670d\u52a1\u5668\uff01'\r\n    client_socket.send(message.encode('utf-8'))\r\n\r\n    # \u5173\u95ed\u8fde\u63a5\r\n    client_socket.close()<\/code><\/pre>\n<ul id=\"code_id_0\" class=\"pre-numbering\">\n<li>1.<\/li>\n<li>2.<\/li>\n<li>3.<\/li>\n<li>4.<\/li>\n<li>5.<\/li>\n<li>6.<\/li>\n<li>7.<\/li>\n<li>8.<\/li>\n<li>9.<\/li>\n<li>10.<\/li>\n<li>11.<\/li>\n<li>12.<\/li>\n<li>13.<\/li>\n<li>14.<\/li>\n<li>15.<\/li>\n<li>16.<\/li>\n<li>17.<\/li>\n<li>18.<\/li>\n<li>19.<\/li>\n<li>20.<\/li>\n<li>21.<\/li>\n<li>22.<\/li>\n<li>23.<\/li>\n<li>24.<\/li>\n<li>25.<\/li>\n<li>26.<\/li>\n<li>27.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>\u8fd9\u4e2a\u4f8b\u5b50\u521b\u5efa\u4e86\u4e00\u4e2a\u7b80\u5355\u7684TCP\u670d\u52a1\u5668\uff0c\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5\uff0c\u63a5\u53d7\u8fde\u63a5\u540e\u53d1\u9001\u4e00\u6761\u6d88\u606f\uff0c\u7136\u540e\u5173\u95ed\u8fde\u63a5\u3002\u63a5\u4e0b\u6765\uff0c\u8ba9\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u5ba2\u6237\u7aef\u4ee5\u8fde\u63a5\u5230\u8fd9\u4e2a\u670d\u52a1\u5668\u3002<\/p>\n<h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_1\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\">import socket\r\n\r\n# \u521b\u5efa\u5957\u63a5\u5b57\u5bf9\u8c61\r\nclient_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\r\n\r\n# \u83b7\u53d6\u672c\u5730\u4e3b\u673a\u540d\u548c\u7aef\u53e3\u53f7\r\nhost = socket.gethostname()\r\nport = 12345\r\n\r\n# \u8fde\u63a5\u670d\u52a1\u5668\r\nclient_socket.connect((host, port))\r\n\r\n# \u63a5\u6536\u6d88\u606f\u5e76\u6253\u5370\r\nmessage = client_socket.recv(1024)\r\nprint(message.decode('utf-8'))\r\n\r\n# \u5173\u95ed\u8fde\u63a5\r\nclient_socket.close()<\/code><\/pre>\n<ul id=\"code_id_1\" class=\"pre-numbering\">\n<li>1.<\/li>\n<li>2.<\/li>\n<li>3.<\/li>\n<li>4.<\/li>\n<li>5.<\/li>\n<li>6.<\/li>\n<li>7.<\/li>\n<li>8.<\/li>\n<li>9.<\/li>\n<li>10.<\/li>\n<li>11.<\/li>\n<li>12.<\/li>\n<li>13.<\/li>\n<li>14.<\/li>\n<li>15.<\/li>\n<li>16.<\/li>\n<li>17.<\/li>\n<li>18.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2aTCP\u5ba2\u6237\u7aef\uff0c\u8fde\u63a5\u5230\u4e4b\u524d\u521b\u5efa\u7684\u670d\u52a1\u5668\uff0c\u63a5\u6536\u6765\u81ea\u670d\u52a1\u5668\u7684\u6d88\u606f\uff0c\u5e76\u5c06\u5176\u6253\u5370\u51fa\u6765\u3002<\/p>\n<h3>2. \u5b9e\u4f8b\u6f14\u793a\uff1a\u6784\u5efa\u7b80\u5355\u7684\u804a\u5929\u5e94\u7528<\/h3>\n<h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_2\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\"># \u670d\u52a1\u7aef\u4ee3\u7801\r\nimport socket\r\n\r\ndef server():\r\n    server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\r\n    host = socket.gethostname()\r\n    port = 12345\r\n    server_socket.bind((host, port))\r\n    server_socket.listen(5)\r\n\r\n    print('\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5...')\r\n    while True:\r\n        client_socket, addr = server_socket.accept()\r\n        print('\u8fde\u63a5\u5730\u5740:', addr)\r\n\r\n        while True:\r\n            message = client_socket.recv(1024).decode('utf-8')\r\n            if not message:\r\n                break\r\n            print(f\"\u5ba2\u6237\u7aef\u6d88\u606f\uff1a{message}\")\r\n\r\n            # \u670d\u52a1\u7aef\u56de\u590d\u6d88\u606f\r\n            reply = input('\u56de\u590d\u5ba2\u6237\u7aef\uff1a')\r\n            client_socket.send(reply.encode('utf-8'))\r\n\r\n        client_socket.close()\r\n\r\nif __name__ == '__main__':\r\n    server()<\/code><\/pre>\n<ul id=\"code_id_2\" class=\"pre-numbering\">\n<li>1.<\/li>\n<li>2.<\/li>\n<li>3.<\/li>\n<li>4.<\/li>\n<li>5.<\/li>\n<li>6.<\/li>\n<li>7.<\/li>\n<li>8.<\/li>\n<li>9.<\/li>\n<li>10.<\/li>\n<li>11.<\/li>\n<li>12.<\/li>\n<li>13.<\/li>\n<li>14.<\/li>\n<li>15.<\/li>\n<li>16.<\/li>\n<li>17.<\/li>\n<li>18.<\/li>\n<li>19.<\/li>\n<li>20.<\/li>\n<li>21.<\/li>\n<li>22.<\/li>\n<li>23.<\/li>\n<li>24.<\/li>\n<li>25.<\/li>\n<li>26.<\/li>\n<li>27.<\/li>\n<li>28.<\/li>\n<li>29.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u6f14\u793a\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u670d\u52a1\u7aef\u7a0b\u5e8f\u3002\u5b83\u4e0d\u65ad\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5\uff0c\u63a5\u6536\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u6d88\u606f\u5e76\u56de\u590d\u3002<\/p>\n<h4>\u793a\u4f8b\u4ee3\u7801\uff1a<\/h4>\n<div>\n<div class=\"hljs-cto\">\n<div class=\"hljs-cto\"><button class=\"copy_btn disable\" data-clipboard-target=\"#code_id_3\">\u590d\u5236<\/button><\/p>\n<div class=\"code-toolbar\">\n<pre class=\"has-pre-numbering language-plain\" tabindex=\"0\"><code class=\"language-plain\"># \u5ba2\u6237\u7aef\u4ee3\u7801\r\nimport socket\r\n\r\ndef client():\r\n    client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\r\n    host = socket.gethostname()\r\n    port = 12345\r\n    client_socket.connect((host, port))\r\n\r\n    while True:\r\n        message = input('\u53d1\u9001\u6d88\u606f\uff1a')\r\n        client_socket.send(message.encode('utf-8'))\r\n\r\n        # \u63a5\u6536\u670d\u52a1\u7aef\u6d88\u606f\r\n        server_message = client_socket.recv(1024).decode('utf-8')\r\n        print(f\"\u670d\u52a1\u7aef\u6d88\u606f\uff1a{server_message}\")\r\n\r\n    client_socket.close()\r\n\r\nif __name__ == '__main__':\r\n    client()<\/code><\/pre>\n<ul id=\"code_id_3\" class=\"pre-numbering\">\n<li>1.<\/li>\n<li>2.<\/li>\n<li>3.<\/li>\n<li>4.<\/li>\n<li>5.<\/li>\n<li>6.<\/li>\n<li>7.<\/li>\n<li>8.<\/li>\n<li>9.<\/li>\n<li>10.<\/li>\n<li>11.<\/li>\n<li>12.<\/li>\n<li>13.<\/li>\n<li>14.<\/li>\n<li>15.<\/li>\n<li>16.<\/li>\n<li>17.<\/li>\n<li>18.<\/li>\n<li>19.<\/li>\n<li>20.<\/li>\n<li>21.<\/li>\n<\/ul>\n<div class=\"toolbar\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5ba2\u6237\u7aef\u7a0b\u5e8f\u3002\u5b83\u8fde\u63a5\u5230\u4e4b\u524d\u521b\u5efa\u7684\u670d\u52a1\u5668\uff0c\u5411\u670d\u52a1\u5668\u53d1\u9001\u6d88\u606f\u5e76\u6253\u5370\u670d\u52a1\u5668\u56de\u590d\u7684\u6d88\u606f\u3002<\/p>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u901a\u8fc7\u8fd9\u4e9b\u793a\u4f8b\u4ee3\u7801\uff0c\u53ef\u4ee5\u5f00\u59cb\u5b66\u4e60Python\u7684\u7f51\u7edc\u7f16\u7a0b\u57fa\u7840\u3002\u6df1\u5165\u4e86\u89e3TCP\/IP\u534f\u8bae\u5e76\u5b9e\u8df5\u7f16\u5199\u7b80\u5355\u7684\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7a0b\u5e8f\u5c06\u6709\u52a9\u4e8e\u4f60\u66f4\u597d\u5730\u7406\u89e3\u7f51\u7edc\u901a\u4fe1\u7684\u539f\u7406\u3002\u7f51\u7edc\u7f16\u7a0b\u662fPython\u7684\u5f3a\u5927\u529f\u80fd\u4e4b\u4e00\uff0c\u4e5f\u662f\u63a2\u7d22\u73b0\u4ee3\u8f6f\u4ef6\u5f00\u53d1\u4e2d\u7684\u4e0d\u53ef\u6216\u7f3a\u7684\u90e8\u5206\u3002<\/p>\n<\/div>\n<\/div>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_21752\" class=\"pvc_stats total_only  \" data-element-id=\"21752\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>TCP\uff08Transmission Control Protocol\uff09\u662f\u4e00\u79cd\u9762\u5411\u8fde\u63a5\u7684\u3001\u53ef\u9760\u7684\u3001\u57fa\u4e8e\u5b57\u8282\u6d41\u7684\u4f20\u8f93 [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_21752\" class=\"pvc_stats total_only  \" data-element-id=\"21752\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":56,"featured_media":21754,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,20,80],"tags":[1258],"class_list":["post-21752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-23","category-20","category-80","tag-python-tcp-"],"_links":{"self":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/21752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/comments?post=21752"}],"version-history":[{"count":1,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/21752\/revisions"}],"predecessor-version":[{"id":21755,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/21752\/revisions\/21755"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media\/21754"}],"wp:attachment":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media?parent=21752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/categories?post=21752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/tags?post=21752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}