4 ms·
..and his proposed alternative requires that you have already decoded the message to create the corresponding Message objects. To create those objects, you stil
by bewo001 8y ago
..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; .. }