Age | Commit message (Collapse) | Author |
|
Not just the domain name. This gives better HTTP 1.0 examples if someone
wants to copy them.
Signed-off-by: Damien George <damien@micropython.org>
|
|
The main changes here are to pass the address family and socket type to
`getaddrinfo()`, and then use the result of the address lookup when
creating the socket, so it has the correct address family.
This allows both IPv4 and IPv6 to work, because the socket is created with
the correct AF_INETx type for the address.
Also add some more comments to the examples to explain what's going on.
Fixes issue #15580.
Signed-off-by: Damien George <damien@micropython.org>
|
|
Applies to drivers/examples/extmod/port-modules/tools.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
|
|
|
|
|
|
Otherwise, on bare-metal/RTOS systems can lead to resource leaks.
|
|
Instead of extracting 4th element, extact last. Much easier to remember!
|
|
Allows to re-run code if it was imported as a module (e.g., on bare-metal
ports).
|
|
|
|
|
|
|