mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
gh-93183: Adjust wording in socket docs (GH-93832)
package => packet
Co-authored-by: Victor Norman
(cherry picked from commit cdd3984307
)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
parent
7db66d8816
commit
cde0dadd34
1 changed files with 2 additions and 2 deletions
|
@ -2028,10 +2028,10 @@ the interface::
|
|||
# Include IP headers
|
||||
s.setsockopt(socket.IPPROTO_IP, socket.IP_HDRINCL, 1)
|
||||
|
||||
# receive all packages
|
||||
# receive all packets
|
||||
s.ioctl(socket.SIO_RCVALL, socket.RCVALL_ON)
|
||||
|
||||
# receive a package
|
||||
# receive a packet
|
||||
print(s.recvfrom(65565))
|
||||
|
||||
# disabled promiscuous mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue