mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
gh-93183: Adjust wording in socket docs (#93832)
package => packet Co-authored-by: Victor Norman
This commit is contained in:
parent
4f26963526
commit
cdd3984307
1 changed files with 2 additions and 2 deletions
|
@ -2076,10 +2076,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