I need to make a server which can process different kinds of messages. The messages come in a stream of bytes and are identified by the first 2 bytes (opcode). So I have thi