diff options
author | raisinten <raisinten@gmail.com> | 2020-12-29 19:53:16 +0530 |
---|---|---|
committer | Santiago Gimeno <santiago.gimeno@gmail.com> | 2021-02-14 09:13:34 +0100 |
commit | c3d08b5d63267c70554da081ce9f35dfb81132e2 (patch) | |
tree | 62af85169a3a644606ef8e9417d5fe853dd114e5 /docs/src/guide/networking.rst | |
parent | 4b0d8b2c93a8fdff91ce7566ba8e1089e547afc4 (diff) | |
download | libuv-c3d08b5d63267c70554da081ce9f35dfb81132e2.tar.gz libuv-c3d08b5d63267c70554da081ce9f35dfb81132e2.zip |
doc: fix code highlighting
Affected docs:
* basics.rst
* filesystem.rst
* eventloops.rst
* networking.rst
* processes.rst
* threads.rst
* utilities.rst
Fixes: https://github.com/libuv/libuv/issues/3033
PR-URL: https://github.com/libuv/libuv/pull/3082
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'docs/src/guide/networking.rst')
-rw-r--r-- | docs/src/guide/networking.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/guide/networking.rst b/docs/src/guide/networking.rst index b2f3fc77..50a191dd 100644 --- a/docs/src/guide/networking.rst +++ b/docs/src/guide/networking.rst @@ -38,6 +38,7 @@ Here is a simple echo server .. rubric:: tcp-echo-server/main.c - The listen socket .. literalinclude:: ../../code/tcp-echo-server/main.c + :language: c :linenos: :lines: 68- :emphasize-lines: 4-5,7-10 @@ -60,6 +61,7 @@ In this case we also establish interest in reading from this stream. .. rubric:: tcp-echo-server/main.c - Accepting the client .. literalinclude:: ../../code/tcp-echo-server/main.c + :language: c :linenos: :lines: 51-66 :emphasize-lines: 9-10 @@ -108,6 +110,7 @@ address from a `DHCP`_ server -- DHCP Discover. .. rubric:: udp-dhcp/main.c - Setup and send UDP packets .. literalinclude:: ../../code/udp-dhcp/main.c + :language: c :linenos: :lines: 7-11,104- :emphasize-lines: 8,10-11,17-18,21 @@ -143,6 +146,7 @@ the OS will discard the data that could not fit* (That's UDP for you!). .. rubric:: udp-dhcp/main.c - Reading packets .. literalinclude:: ../../code/udp-dhcp/main.c + :language: c :linenos: :lines: 17-40 :emphasize-lines: 1,23 @@ -193,6 +197,7 @@ Freenode to see an example of DNS resolution. .. rubric:: dns/main.c .. literalinclude:: ../../code/dns/main.c + :language: c :linenos: :lines: 61- :emphasize-lines: 12 @@ -209,6 +214,7 @@ call ``uv_freeaddrinfo`` in the callback. .. rubric:: dns/main.c .. literalinclude:: ../../code/dns/main.c + :language: c :linenos: :lines: 42-60 :emphasize-lines: 8,16 @@ -227,6 +233,7 @@ useful to allow your service to bind to IP addresses when it starts. .. rubric:: interfaces/main.c .. literalinclude:: ../../code/interfaces/main.c + :language: c :linenos: :emphasize-lines: 9,17 |