summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 13 insertions, 7 deletions
diff --git a/README.md b/README.md
index 3bcccd002..2d3876ede 100644
--- a/README.md
+++ b/README.md
@@ -20,18 +20,24 @@ This project uses some kind of microservice architecture.
```text
_______________________ __________________________
-| producer | | consumer |
+| "producer" | | "consumer" |
|---------------------| _____________________________ |------------------------|
| | | nDPIsrvd | | |
| nDPId --- Thread 1 >| ---> |> | <| <--- |< example/c-json-stdout |
-| `- Thread 2 >| ---> |> collector | distributor <| <--- |< example/py-flow-info |
-| `- Thread N >| ---> |> >>> forward >>> <| <--- | ... |
-|_____________________| ^ |____________|______________| ^ |________________________|
- | |
- `- connect to UNIX socket `- connect to TCP socket
- `- sends serialized data `- receives serialized data
+| (eth0) `- Thread 2 >| ---> |> collector | distributor <| <--- |________________________|
+| `- Thread N >| ---> |> >>> forward >>> <| <--- | |
+|_____________________| ^ |____________|______________| ^ |< example/py-flow-info |
+| | | | |________________________|
+| nDPId --- Thread 1 >| `- connect to UNIX socket | | |
+| (eth1) `- Thread 2 >| `- sends serialized data | |< example/... |
+| `- Thread N >| | |________________________|
+|_____________________| |
+ `- connect to UNIX/TCP socket
+ `- receives serialized data
```
+It doesn't use a producer/consumer design pattern, so the wording is not precise.
+
# JSON TCP protocol
All JSON strings sent need to be in the following format: