I\'ve written a number of networking systems and have a good idea of how networking works. However I always end up having a packet receive function which is a giant switch stat
A map of handler instances is pretty much the best way to handle it. Nothing inelegant about it.