Page 1 of 1

Is sequence number unique across multiple binds and sessions

Posted: Mon May 25, 2015 11:04 am
by murtz
Hi,

I want to know if the sequence number being generated while using SubmitAsync method is unique across multiple binds and sessions?

The application I'm creating will be having more than 50 SmppClient objects, all connected to different servers. Most of the time, many of these clients will be submitting SMS so I'm unsure whether I can rely on the sequence number or not. Also, what happens when the application restarts or the system, where the application is hosted, restarts? Does the sequence number get reset?

Thanks

Re: Is sequence number unique across multiple binds and sess

Posted: Tue May 26, 2015 2:54 pm
by alt
Hi murtz,

Sequence Number should be unique during one smpp session.
Internal Sequence Generator is created within SmppClient instance. Sequence number gets reset when you recreate a SmppClient.

You can implement ISequenceGenerator interface with your own solution.
_client = new SmppClient();
_client.SequenceGenerator = myGenerator;