mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 21:20:13 +01:00
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.
42 KiB
42 KiB