GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [docs] socket documentation: "packages" -> "packets" · Issue #93183 · python/cpython

[docs] socket documentation: "packages" -> "packets" #93183

New issue
Copy link
New issue
Copy link
Closed
#93832
Closed
[docs] socket documentation: "packages" -> "packets"#93183
#93832
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@furkanonder
furkanonder
opened on May 24, 2022
Issue body actions

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 interface
HOST = socket.gethostbyname(socket.gethostname())

# create a raw socket and bind it to the public interface
s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
s.bind((HOST, 0))

# Include IP headers
s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1)

# receive all packages
s.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)

# receive a package
print(s.recvfrom(65565))

# disabled promiscuous mode
s.ioctl(socket.SIO_RCVALL, socket.RCVALL_OFF)

Activity

  1. furkanonder
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on May 24, 2022
  2. erlend-aasland
    linked a pull request that will close this issuegh-93183: Adjust wording in socket docs #92935on May 24, 2022
  3. erlend-aasland
    added a commit that references this issue on Jun 15, 2022

    pythongh-93183: Adjust wording in socket docs

    acd17e4
  4. erlend-aasland
    closed this as completedin #93832on Jun 15, 2022
  5. erlend-aasland
    added a commit that references this issue on Jun 15, 2022

    gh-93183: Adjust wording in socket docs (#93832)

    cdd3984
  6. miss-islington
    added 4 commits that reference this issue on Jun 15, 2022

    pythongh-93183: Adjust wording in socket docs (pythonGH-93832)

    401b4b7

    pythongh-93183: Adjust wording in socket docs (pythonGH-93832)

    0844c2f

    gh-93183: Adjust wording in socket docs (GH-93832)

    cde0dad

    gh-93183: Adjust wording in socket docs (GH-93832)

    095d09c
  7. serhiy-storchaka
    added a commit that references this issue on Jun 26, 2022

    Revert 30935 defer bpo45162 to 312 (#94285)

    1ffde3e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.