Hi,
I am implementing concat messages support in our SMPP server. Searching here, I see that I can use MessageComposer and the evFullMessageReceived and evFullMessageTimeout events.
I have some doubts though:
1. Does MessageComposer support several distinct messages ? In the examples I see that you are declaring a MessageComponer object property in the main server class. In that's the case, I will be calling AddMessage for several diferrent messages. it it ok ? If not, where should I declare and store the MessageComposer instance
2. Related to 1. Is MessageComposer thread-safe ?
3. Does MessageComponer works for non-concatenated messages ? that is, will I get a evFullMessageReceived when the message is not concatenated, or I need to implement two distinct flows.
Thanks,
Luis
MessageComposer in SMPP Server
Re: MessageComposer in SMPP Server
Hi Luis,
Yes, you can create a single instance of the MessageComposer class for the SMPP server. The class is thread-safe, allowing you to add different messages concurrently.
The composer uses a combination of the source address, destination address, and message reference number as a unique key for managing concatenated messages.
When a non-concatenated message is added, the class immediately triggers the evFullMessageReceived event.
Yes, you can create a single instance of the MessageComposer class for the SMPP server. The class is thread-safe, allowing you to add different messages concurrently.
The composer uses a combination of the source address, destination address, and message reference number as a unique key for managing concatenated messages.
When a non-concatenated message is added, the class immediately triggers the evFullMessageReceived event.