Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | examples/network: Support IPv4 and IPv6 in HTTP client examples. | Damien George | 2024-08-28 |
| | | | | | | | | | | | | | | | 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> | ||
* | examples/network: Add example of HTTPS client using non-blocking socket. | Damien George | 2024-05-13 |
Non-blocking SSL streams can be difficult to get right, so provide a working example, of a HTTPS client. Signed-off-by: Damien George <damien@micropython.org> |