|
From: Steven W. <swi...@so...> - 2002-05-26 03:13:55
|
While looking at the code causing my compile error, I have the following ideas to help make the network coding easier to write. Create multiple Add/Get types (one for each type of low level data) that are used instead of the specific AddBits/GetBits. That way any encoding for that specific type of data goes into the general frnetbits class instead of every object. Thiss will produce less code and make it easier to ensure that the sned & recv's work the same way. Laster, if a better encoding is identified for a type, you can change it one place For instance AddString() could send the length followed automatically by the string data. S.W. aka Learner http://www.TerminusPoint.com |