forked from WebAssembly/WASI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
sock_accept()
to snapshot1 (WebAssembly#458)
This function allows a server to accept incoming connections. A few notes are in order. Although there are legitimate questions about the capabilities model in numerous networking APIs, this particular API is both immensely useful and not a violation of the capabilities model. There is still no way to create an arbitrary socket. The only thing that WASM can do is accept incoming connections on a predefined listening socket. Signed-off-by: Nathaniel McCallum <[email protected]>
- Loading branch information
1 parent
3423c9c
commit 0ba0c5e
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters