Skip to content

net: add FileListener/FileConn (stubs) - #76

Open
0pcom wants to merge 1 commit into
tinygo-org:mainfrom
0magnet:file-listener-conn
Open

net: add FileListener/FileConn (stubs)#76
0pcom wants to merge 1 commit into
tinygo-org:mainfrom
0magnet:file-listener-conn

Conversation

@0pcom

@0pcom 0pcom commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Packages like gin reference net.FileListener (its RunFd helper). The netdev-based net package manages its own file descriptors and cannot adopt an arbitrary OS fd, so these return a clear error rather than being absent — enough to let such packages compile, with a descriptive failure for callers that actually invoke them.

Verified: a program calling both gets net: File-based listeners/conns are not implemented on this target rather than a compile error.

🤖 Generated with Claude Code

https://claude.ai/code/session_01C3X3gvq8ZggMRvzVzWm66i

Packages like gin reference net.FileListener (RunFd). The netdev-based net
package can't adopt an arbitrary OS fd, so these return a clear error rather
than being absent — enough to let such packages compile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant