From df605f3ca4e98ea3b5b0b96d6e6a8ceb142e3185 Mon Sep 17 00:00:00 2001 From: Izaya Date: Fri, 16 Feb 2018 22:03:58 +1100 Subject: [PATCH] added an example exchange --- protocol-3.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/protocol-3.md b/protocol-3.md index 0c9606c..fe9e9ed 100644 --- a/protocol-3.md +++ b/protocol-3.md @@ -41,3 +41,10 @@ Packets are made up of separated parts, as allowed by OpenComputers modems. - port: virtual port, number \< 65536 - data: the actual packet data, or in the case of an acknowledgement packet, the original packet ID, string +### Example exchange: + +Node bob sends a reliable packet to node alice, on port 44: +"asdsfghjkqwertyu", 1, "alice", "bob", 44, "Hello!" + +Node alice acknowledges node bob's packet: +"1234567890asdfgh", 2, "bob", "alice", 44, "asdsfghjkqwertyu"