You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: examples/multipro/README.md
+6
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,14 @@ From `multipro` base source folder:
30
30
## Details
31
31
32
32
The example creates two LibP2P Hosts supporting 2 protocols: ping and echo.
33
+
33
34
Each protocol consists RPC-style requests and respones and each request and response is a typed protobufs message (and a go data object).
35
+
34
36
This is a different pattern then defining a whole p2p protocol as 1 protobuf message with lots of optional fields (as can be observed in various p2p-lib protocols using protobufs such as dht).
37
+
35
38
The example shows how to match async received responses with their requests. This is useful when processing a response requires access to the request data.
0 commit comments