Hi,
I'm designing a network stack. The idea is a bit linuxish. Above the drivers is a protocol independent core driver. But my question is, how can this core driver call the correct protocol handler without using a huge switch case and using every protocol as a case..
I hope someone can help,
Bietje
Network stack design
Re: Network stack design
Nice, thank you.berkus wrote:Using a protocol handler registry.
protocols[protocol_number]->do_something_with(packet);