]> git.tdb.fi Git - libs/net.git/commit
Add a dynamic receiver class for more flexible packet handling master
authorMikko Rasa <tdb@tdb.fi>
Thu, 1 Jun 2023 07:31:43 +0000 (10:31 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 1 Jun 2023 07:31:43 +0000 (10:31 +0300)
commitb451f834a6b5440fb1064cf96c69eb5447ae86cf
tree5e9423b90dd1db897b6170cecca413b45bf6265a
parent3f46fef7032d97b0dd82971ffece1062fd6b05b8
Add a dynamic receiver class for more flexible packet handling

It's useful for middleware libraries which may not know all packet types
at compile time, or if different packets need to be routed to different
receivers.
source/net/protocol.cpp
source/net/protocol.h
source/net/receiver.cpp [new file with mode: 0644]
source/net/receiver.h