mirror of
https://github.com/micropython/micropython.git
synced 2026-05-03 06:10:14 +02:00
7d57037906
To use: .setsockopt(SOL_SOCKET, 20, lambda sock: print(sock)). There's a single underlying callback slot. For normal sockets, it serves as data received callback, for listening sockets - connection arrived callback.