How to use EnquireLink class to check SMSC connection status

Smpp v3.4 client

Moderator: alt

Locked
mrudula
Posts: 20
Joined: Thu Jul 08, 2010 9:20 am

How to use EnquireLink class to check SMSC connection status

Post by mrudula » Tue Nov 30, 2010 10:35 am

Hello everyone!
The method i am using to send messages is connecting gateway, binding it, sending messages through submitAsync and disconnecting gateway. Since i use multiple operators, i follow the same process for all the operators.
I have created a windows service that handles all this and go on continously doing so. My operators complain me that in a minute over 100 bind and unbind happens from my ID, which choks uo the server. In fact, they suggest me to keep the connection always open (i.e. not to disconnect it ) and use enquire link to check whether smsc is connected or not.
Please help me by some example code how to make use of enquire link.

Urgent help is needed!
Please do the needful at earliest.

Kind Regards!
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: How to use EnquireLink class to check SMSC connection st

Post by alt » Wed Dec 01, 2010 2:42 pm

Hi,

SmppClient keeps connection alive by sending EnquireLink every 60 seconds (EnquireInterval property).
SmppClientDemo application demonstrates this well.

Anyway you can disable enquire link sending NeedEnquireLink = false, and send client.EnquireLink(); at any time.
Locked