Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Commit

Permalink
Fix text to include correct lines for changed code related to #69.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilm committed Sep 29, 2016
1 parent 09dbd58 commit 35439d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion source/filesystem.rst
Expand Up @@ -169,7 +169,7 @@ opened as bidirectional by default.
.. rubric:: uvtee/main.c - read on pipes
.. literalinclude:: ../code/uvtee/main.c
:linenos:
:lines: 61-79
:lines: 61-80
:emphasize-lines: 4,5,15

The third argument of ``uv_pipe_init()`` should be set to 1 for IPC using named
Expand Down
4 changes: 2 additions & 2 deletions source/networking.rst
Expand Up @@ -39,7 +39,7 @@ Here is a simple echo server
.. rubric:: tcp-echo-server/main.c - The listen socket
.. literalinclude:: ../code/tcp-echo-server/main.c
:linenos:
:lines: 56-
:lines: 68-
:emphasize-lines: 4-5,7-10

You can see the utility function ``uv_ip4_addr`` being used to convert from
Expand All @@ -61,7 +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
:linenos:
:lines: 38-54
:lines: 51-66
:emphasize-lines: 9-10

The remaining set of functions is very similar to the streams example and can
Expand Down
6 changes: 3 additions & 3 deletions source/processes.rst
Expand Up @@ -277,7 +277,7 @@ messaging is no different from TCP, so we'll re-use the echo server example.
.. rubric:: pipe-echo-server/main.c
.. literalinclude:: ../code/pipe-echo-server/main.c
:linenos:
:lines: 56-
:lines: 70-
:emphasize-lines: 5,10,14

We name the socket ``echo.sock`` which means it will be created in the local
Expand Down Expand Up @@ -314,7 +314,7 @@ it by the master.
.. rubric:: multi-echo-server/worker.c
.. literalinclude:: ../code/multi-echo-server/worker.c
:linenos:
:lines: 7-9,67-
:lines: 7-9,81-
:emphasize-lines: 6-8

``queue`` is the pipe connected to the master process on the other end, along
Expand All @@ -327,7 +327,7 @@ standard input of the worker, we connect the pipe to ``stdin`` using
.. rubric:: multi-echo-server/worker.c
.. literalinclude:: ../code/multi-echo-server/worker.c
:linenos:
:lines: 36-65
:lines: 51-79
:emphasize-lines: 10,15,20

First we call ``uv_pipe_pending_count()`` to ensure that a handle is available
Expand Down

0 comments on commit 35439d4

Please sign in to comment.