Title: [docs] socket documentation: "packages" -> "packets" · Issue #93183 · python/cpython · GitHub
Open Graph Title: [docs] socket documentation: "packages" -> "packets" · Issue #93183 · python/cpython
X Title: [docs] socket documentation: "packages" -> "packets" · Issue #93183 · python/cpython
Description: Documentation In the example of the socket.rst, the comment # receive all packages should be changed to # receive all packets and the comment receive a package should be changed to receive a packet. import socket # the public network int...
Open Graph Description: Documentation In the example of the socket.rst, the comment # receive all packages should be changed to # receive all packets and the comment receive a package should be changed to receive a packet...
X Description: Documentation In the example of the socket.rst, the comment # receive all packages should be changed to # receive all packets and the comment receive a package should be changed to receive a packet...
Opengraph URL: https://github.com/python/cpython/issues/93183
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[docs] socket documentation: \"packages\" -\u003e \"packets\"","articleBody":"**Documentation**\r\n\r\nIn the example of the [socket.rst](https://github.com/python/cpython/blob/main/Doc/library/socket.rst), the comment ```# receive all packages``` should be changed to ```# receive all packets``` and the comment ```receive a package``` should be changed to ```receive a packet```.\r\n\r\n```\r\nimport socket\r\n\r\n# the public network interface\r\nHOST = socket.gethostbyname(socket.gethostname())\r\n\r\n# create a raw socket and bind it to the public interface\r\ns = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)\r\ns.bind((HOST, 0))\r\n\r\n# Include IP headers\r\ns.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1)\r\n\r\n# receive all packages\r\ns.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)\r\n\r\n# receive a package\r\nprint(s.recvfrom(65565))\r\n\r\n# disabled promiscuous mode\r\ns.ioctl(socket.SIO_RCVALL, socket.RCVALL_OFF)\r\n```\r\n\r\n","author":{"url":"https://github.com/furkanonder","@type":"Person","name":"furkanonder"},"datePublished":"2022-05-24T20:23:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/93183/cpython/issues/93183"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:94f09391-6938-36eb-9ac5-a27315b9d833 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6FC:343C8C:7E142:A6002:6969C6E9 |
| html-safe-nonce | 8bf523fefecfe8e7a02629b1d011c56cbf5e20ec6fda2266c0f95604efcc5cd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkZDOjM0M0M4Qzo3RTE0MjpBNjAwMjo2OTY5QzZFOSIsInZpc2l0b3JfaWQiOiIzMjQ0NzQ0ODE3NzYwNjUwOTg1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 85fd63baf3abba456f172295c219517c3e2c3f6c877ee7d8075a2525ae27e495 |
| hovercard-subject-tag | issue:1247085726 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/93183/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb29bffae37f8f7a4d63942d219ee5f3ff43ed45c5b14688544795d178b457b8/python/cpython/issues/93183 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb29bffae37f8f7a4d63942d219ee5f3ff43ed45c5b14688544795d178b457b8/python/cpython/issues/93183 |
| og:image:alt | Documentation In the example of the socket.rst, the comment # receive all packages should be changed to # receive all packets and the comment receive a package should be changed to receive a packet... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | furkanonder |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width