[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] [Q] some problems when modifying



Dear sir,
 
I 'd like to modify the dsconditioner of Mr Sean, Murphy for multiplexing the packet.
First I defined the packet for multiplexing(mp)
and I multiplexed the incoming packet into mp packet in your recv member function.
But I found some problems.
 
1. What  I want to do is that first coming packet is assigned to mp(Packet for multiplexing)
and other sequencial packets following the first packet are multiplexed
in Appdata_ of mp and when the maximum muliplexing number is reached, I send mp to target.
But when checking 'p->accessdata()', there is just 0(NULL). I just found segmentation fault message.
So I could not multiplexing the sequencial packets. How can I fix this?
 
2. In previous packet header file, there was unsigned char * data_. Now changed to AppData * data_.
I'd like to use this member to multiplexing the packet. Please let me know how to use it.
How can I initialize this member? How can I insert my data into this member? ...................
 
Thank you ahead.
 
Best reguards,
 
Byeongsoo Yun