News for hackers. Stuff that matters.
Re:Guide to Implementing Communication Protocols in C++ for ... by bewo001 on Tuesday June 12, 2018 @07:15AM (#17292249)
..and his proposed alternative requires that you have already decoded the message to create the corresponding Message objects. To create those objects, you still need some sort of switch somewhere, eg switch(ip.protocol()) { case 6: m = new TcpMessage(); break; case 17: m = new UdpMessage(); break; .. }

There are no comments on this comment yet.