[Strmod-devel] StrChunkUDPDecorator::Length() question
Status: Alpha
Brought to you by:
omnifarious
From: Jim H. <jh...@iu...> - 2004-04-28 02:50:06
|
Hey Eric, I was looking over how to implement Length() in my StrChunkUDPDecorator class and got confused on one thing. I know that from UDPSocketModule::doReadFD() that the buffed_read_ is a DynamicBuffer. The way I see it, this is the class that should return how big my StrChunk is that I'm passing in by reference to my StrChunkUDPDecorator constructor. However, there is no such way that I can see on how to get the current length of a DynamicBuffer. I imagine this is by design, but what do I do in my case? Also, for StrChunkUDPDecorator::Length(), should it report the combined octal length of the StrChunk + string that stores the address + U2Byte that stores the port? Or should it only report the length of the StrChunk? Since I'm not sure what exactly calls the StrChunkUDPDecorator::Length() function, I do not know what it is looking for. Thanks for all of the help! Jim Hodapp -- Full-time student of Electrical Engineering Purdue School of Engineering @ Indiana University Purdue University Indianapolis |