Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Nov 12, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Neradoc and others added 8 commits June 24, 2025 18:52
socket_write() and send() return the number of bytes sent
add some of the constants used by httpserver (others missing)
dummy entries for setsockopt(), listen() and setblocking()
implement bind() by using ninafw start_server()
implement accept() by getting a clien socket from that server

add back socknum parameter to allow wrapping a Socket around a ninafw socket number, which is required to be able to receive a connection from the server
re-implement timeout similar to Circuitpython (None blocks, 0 doesn't)
NOTE: this is a breaking change for any code that uses it

bind() saves the bound address and port
listen() uses the saved address and port or uses defaults
some fixes for pylint/black
Co-authored-by: Dan Halbert <halbert@halwitz.org>
Bring more compatibility with native sockets
@pull pull bot locked and limited conversation to collaborators Nov 12, 2025
@pull pull bot added the ⤵️ pull label Nov 12, 2025
@pull pull bot merged commit 7682421 into blog2i2j:main Nov 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants