From 873b84693f01babdd4269687ff27d56189aba9bb Mon Sep 17 00:00:00 2001 From: Izaya Date: Mon, 20 Aug 2018 17:23:16 +1000 Subject: [PATCH] updated the OpenOS documentation to include event types --- OpenOS/README.md | 20 ++++++++++++++++++++ OpenOS/usr/man/minitel | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/OpenOS/README.md b/OpenOS/README.md index f8c26c8..be1216d 100644 --- a/OpenOS/README.md +++ b/OpenOS/README.md @@ -39,6 +39,26 @@ To change a setting, one invokes: In addition, one can invoke to get large amounts of debug output, *rc minitel set_route * to add a static route, and *rc minitel del_route * to delete a static route. +### Usage + +The Minitel daemon handles both sending and receiving packets, via events. There are four types of events used:. + +#### net\_msg, *from*, *port*, *data* + +This event is triggered when the Minitel daemon receives a data (type 0 or 1) packet. + +#### net\_ack, *packet ID* + +This event is triggered when the Minitel daemon receives an acknowledgement (type 2) packet. + +#### net\_broadcast, *from*, *port*, *data* + +This event is triggered when the Minitel daemon receives a broadcast (addressed to '~') packet of type 1 or 2. + +#### net\_send, *packet type*, *to*, *port*, *data*, *packet ID* + +This event can be queued (with computer.pushSignal) to manually build packets. While you should never need to use this, it may be useful for certain edge cases. + ## Minitel library The minitel library provides an easy way of interacting with the minitel daemon, and implements higher-level features of the stack. diff --git a/OpenOS/usr/man/minitel b/OpenOS/usr/man/minitel index f8c26c8..be1216d 100644 --- a/OpenOS/usr/man/minitel +++ b/OpenOS/usr/man/minitel @@ -39,6 +39,26 @@ To change a setting, one invokes: In addition, one can invoke to get large amounts of debug output, *rc minitel set_route * to add a static route, and *rc minitel del_route * to delete a static route. +### Usage + +The Minitel daemon handles both sending and receiving packets, via events. There are four types of events used:. + +#### net\_msg, *from*, *port*, *data* + +This event is triggered when the Minitel daemon receives a data (type 0 or 1) packet. + +#### net\_ack, *packet ID* + +This event is triggered when the Minitel daemon receives an acknowledgement (type 2) packet. + +#### net\_broadcast, *from*, *port*, *data* + +This event is triggered when the Minitel daemon receives a broadcast (addressed to '~') packet of type 1 or 2. + +#### net\_send, *packet type*, *to*, *port*, *data*, *packet ID* + +This event can be queued (with computer.pushSignal) to manually build packets. While you should never need to use this, it may be useful for certain edge cases. + ## Minitel library The minitel library provides an easy way of interacting with the minitel daemon, and implements higher-level features of the stack.