diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-10-06 17:58:48 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-06 17:58:48 -0700 |
| commit | 3194e477cf49140d42582ce95de10e61ed5b5cce (patch) | |
| tree | b4c72bb74074d65321bc76ca6caf1735565ad967 | |
| parent | 515ffaacd8f46bb3abd814d869a699c25cc205ba (diff) | |
| download | nng-3194e477cf49140d42582ce95de10e61ed5b5cce.tar.gz nng-3194e477cf49140d42582ce95de10e61ed5b5cce.tar.bz2 nng-3194e477cf49140d42582ce95de10e61ed5b5cce.zip | |
Fix UDP port numbers in docs
| -rw-r--r-- | docs/ref/tran/udp.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/tran/udp.md b/docs/ref/tran/udp.md index 4579c88a..5a10e2d7 100644 --- a/docs/ref/tran/udp.md +++ b/docs/ref/tran/udp.md @@ -28,9 +28,9 @@ Other link layers may have different MTUs. This transport uses URIs using the scheme {{i:`udp://`}}, followed by an IP address or hostname, followed by a colon and finally a -TCP {{i:port number}}. -For example, to contact port 80 on the localhost either of the following URIs -could be used: `udp://127.0.0.1:80` or `udp://localhost:80`. +UDP {{i:port number}}. +For example, to contact port 8001 on the localhost either of the following URIs +could be used: `udp://127.0.0.1:8001` or `udp://localhost:8001`. A URI may be restricted to IPv6 using the scheme `udp6://`, and may be restricted to IPv4 using the scheme `udp4://`. @@ -49,8 +49,8 @@ When specifying IPv6 addresses, the address must be enclosed in square brackets (`[]`) to avoid confusion with the final colon separating the port. -For example, the same port 80 on the IPv6 loopback address (`::1`) would -be specified as `udp://[::1]:80`. +For example, the same port 8001 on the IPv6 loopback address (`::1`) would +be specified as `udp://[::1]:8001`. The special value of 0 ({{i:`INADDR_ANY`}}) can be used for a listener to indicate that it should listen on all |
