MessageComposer in SMPP Server

Post Reply
luisgasca
Posts: 3
Joined: Wed May 26, 2021 6:29 pm

MessageComposer in SMPP Server

Post by luisgasca »

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
alt
Site Admin
Posts: 992
Joined: Tue Apr 25, 2006 9:45 am

Re: MessageComposer in SMPP Server

Post by alt »

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.
Post Reply