Skip to content

Commit

Permalink
tutorials/05_services: Windows improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Pecka <peci1@seznam.cz>
  • Loading branch information
peci1 authored Sep 15, 2024
1 parent 8b184b3 commit c6ea75d
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions tutorials/05_services.md
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,25 @@ cmake --build . --config Release

## Running the examples

> **NOTE**
> It is essential to have a valid value of `GZ_PARTITION` environment variable
> and to have it set to the same value in all open terminals. As `GZ_PARTITION`
> is based on hostname and username, especially Windows and Mac users might
> have problems due to spaces in their username, which are not a valid character
> in `GZ_PARTITION`. gz-transport prints error `Invalid partition name` in such
> case. To resolve that, set `GZ_PARTITION` explicitly to a valid value:
> ```bash
> # Linux and Mac
> export GZ_PARTITION=test
> # Windows
> set GZ_PARTITION=test
> ```
> **NOTE**
> On Windows, you can see firewall or antivirus prompts when running the examples.
> For them to work properly, you should allow all communication to the
> example programs.
Open three new terminals and from your ``build/`` directory run the executables.
From terminal 1:
Expand Down Expand Up @@ -661,7 +680,11 @@ directory run the executables.
From terminal 1:

```{.sh}
# Linux and MacOS
./responser_oneway
# Windows
.\Release\responser_oneway.exe
```

From terminal 2:
Expand All @@ -678,11 +701,7 @@ In your responser terminal, you should expect an output similar to this one,
showing that your service provider has received a request:

```{.sh}
# Linux and MacOS
./responser_oneway
# Windows
.\Release\responser_oneway.exe
Request received: [HELLO]
```

Expand Down Expand Up @@ -723,12 +742,8 @@ In your requesters' terminals, you should expect an output similar to this one,
showing that you have received a response:

```{.sh}
# Linux and MacOS
./requester_no_input
# Windows
.\Release\requester_no_input.exe
Press <CTRL-C> to exit
Response: [This is it! This is the answer. It says here...that a bolt of
lightning is going to strike the clock tower at precisely 10:04pm, next
Expand Down

0 comments on commit c6ea75d

Please sign in to comment.