bSuccess false on evConnected

.NET library for SMPP protocol
Locked
Gilboy
Posts: 1
Joined: Thu Apr 30, 2015 4:49 pm

bSuccess false on evConnected

Post by Gilboy » Mon May 11, 2015 1:50 pm

Hi,

I use SMPP client on two different SMSC.
So I instanciated two SMPP clients.
All is OK but sometimes event evDisconnected is fired by one of the SMSC disconnection.

I added some code to reconnect in that particular case.
The trouble is that in my "connected" event manager the parameter "bSuccess" is false :

Code: Select all

private static void ClientSmppConnected(object sender, bool bSuccess)
So I can not call Bind method.

If I execute "netstat -n" on my server, I can see that socket on first SMSC is OK (up, alive) and the one on which "disconnected" event was fired is not OK.

Can you explain me how to keep my SMSC connections alive or how to reconnect again after event "evDisconnected" is fired ?

Thank you.
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: bSuccess false on evConnected

Post by alt » Fri May 15, 2015 5:51 pm

Hi Gilboy,

When you receive bSuccess = false it means that client fo this moment cannot establish connection with remote side and you need to try to reconnect some time later.
Do you know the reason of disconnection? What do you see in log file before disconnection?

Possible you need to send enquire link to SMSC.
https://docs.inetlab.com/smpp/v1/articl ... _link.html
Locked