Start by re-implementing this function: https://github.com/id-Software/Quake...cl_parse.c#L88

Or think a bit bigger... try to understand the whole network protocol. Once you understand it, you can easily connect everything to everything. (CoD4 to CoD1 etc.). I always wanted to have something like this, but I just lack the time.