-
Notifications
You must be signed in to change notification settings - Fork 361
How to clone a PDU #86
Comments
Can you give me an idea why you are cloning the PDU? Just trying to understand the use case. Seems inefficient to decode/encode again just to get a copy of it. |
It could be used in a Smpp Server for broadcast PDU (v3.4 does not have broadcast) to each Smpp Client Session connected. It also be used in a store and forward proxy. Yes it's not efficient, but maybe the more generics. |
I implemented a proxy simply by:
Cloning would be nice for parallel broadcasting - if that's what you need? |
I'd consider a pull request that implements copying of PDUs. I'm not sure SubmitSm submit = new SubmitSm(otherSubmit); And then provide implementations in each concrete PDU. Alternatively, there are helper libraries that clone for you as well. They On Fri, Apr 3, 2015 at 7:36 AM, Vojtěch Krása [email protected]
|
Hello,
I'm trying to write an application which clone Pdu.
So i wonder what is the best way to clone a PDU ?
I try something like:
But smppSession.getTranscoder() is protected.
Is it possible to change SmppSession.getTranscoder() privacy to public or is there another way ?
The text was updated successfully, but these errors were encountered: