Commit 2bf9c47
sockets: Update documentation (#884)
* Update sockets documentation:
- Limit the prose to about 80 characters per line.
- Describe POSIX equivalents of the error codes.
- Removed outdated `stream` info from:
- `resolve-addresses`
- `tcp-socket::receive`
- Describe shared ownership semantics of sockets and their streams/futures as we landed on in #870
- Capture the "lessons learned" so far:
- TCP & UDP `connect` may update the socket's local address. See bytecodealliance/wasmtime#12589
- TCP `bind` should always set SO_REUSEADDR. See bytecodealliance/wasmtime#12402
- send/receive buffer sizes may be dynamically adjusted by the OS. See bytecodealliance/wasmtime#12561
- Windows does not perform an implicit bind on UDP `send`.
* Update proposals/sockets/wit-0.3.0-draft/types.wit
Co-authored-by: Bailey Hayes <ricochet@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Bailey Hayes <ricochet@users.noreply.github.com>
---------
Co-authored-by: Bailey Hayes <ricochet@users.noreply.github.com>1 parent b16a206 commit 2bf9c47
File tree
3 files changed
+151
-75
lines changed- proposals/sockets
- wit-0.3.0-draft
3 files changed
+151
-75
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments