System-reserved channel message types

- a message handler can return logical True to prevent subsequent message handlers from running
- Message types >= 0xff00 are reserved for system/framework messages
This commit is contained in:
Aaron Heise 2023-02-26 11:39:49 -06:00
parent e005826151
commit c00b592ed9
No known key found for this signature in database
GPG key ID: 6BA54088C41DE8BF
3 changed files with 22 additions and 2 deletions

View file

@ -46,7 +46,8 @@ class StringMessage(RNS.MessageBase):
# message arrives over the channel.
#
# MSGTYPE must be unique across all message types we
# register with the channel
# register with the channel. MSGTYPEs >= 0xff00 are
# reserved for the system.
MSGTYPE = 0x0101
# The constructor of our object must be callable with