circuitpython/shared-bindings/socketpool
Jeff Epler aef55b7e41
Add SocketPool.gaierror
gaierror(-2) is raised in the failure case of getaddrinfo. This is
compatible with cpython's socket module.

Typical session:
```
>>> import socketpool
>>> import wifi
>>> socket = socketpool.SocketPool(wifi.radio)
>>> try: socket.getaddrinfo("boo", 0)
... except socket.gaierror as e: ee = e
...
>>> type(ee)
<class 'gaierror'>
>>> ee.errno == socket.EAI_NONAME
True
>>> ee.strerror
'Name or service not known'
>>> raise ee
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in <module>
gaierror: (-2, 'Name or service not known')
```

Closes: #6941
2022-11-28 16:57:44 -06:00
..
__init__.c run black_bindings across all bindings 2022-09-27 15:21:42 -05:00
__init__.h Wi-Fi autoconnect and title bar status 2022-06-09 14:55:54 -07:00
Socket.c Enable* web workflow for Pico W 2022-11-21 16:24:05 -08:00
Socket.h Enable* web workflow for Pico W 2022-11-21 16:24:05 -08:00
SocketPool.c Add SocketPool.gaierror 2022-11-28 16:57:44 -06:00
SocketPool.h Enable* web workflow for Pico W 2022-11-21 16:24:05 -08:00