Is sequence number unique across multiple binds and sessions

.NET library for SMPP protocol
Locked
murtz
Posts: 15
Joined: Thu May 14, 2015 11:04 am

Is sequence number unique across multiple binds and sessions

Post by murtz » Mon May 25, 2015 11:04 am

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

Re: Is sequence number unique across multiple binds and sess

Post by alt » Tue May 26, 2015 2:54 pm

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;
Locked