File: README.md

package info (click to toggle)
python-wslink 2.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,396 kB
  • sloc: python: 2,849; javascript: 1,176; cpp: 29; makefile: 3
file content (43 lines) | stat: -rw-r--r-- 911 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Chat Client

C++ implementation of client for the chat server example for wslink.

## How to build

Create an adjacent directory by `wslink` named for example `wslink-build` and 
from there issue the following command:

```sh
cmake ../wslink/tests/chat-rpc-pub-sub/clients/cpp/

make 
```

## How to run

### Python server

If you have `wslink` installed on your python distribution you can run
the following command:

```sh
python ./server/server.py --content ./www --port 8080
```

You can also use `ParaView/pvpython` to run the same command so you don't have
to worry about Python and wslink availability.

### Our C++ client

Run the binary previous compiled:

```sh
./cli_test 

"publish:wslink.communication.channel:0" -> "Nice to meet you"
"publish:wslink.communication.channel:0" -> "What's your name?"
hello
"publish:wslink.communication.channel:0" -> "py server: hello"     

```
![demo](demo.gif)