Page 1 of 1

How to use EnquireLink class to check SMSC connection status

Posted: Tue Nov 30, 2010 10:35 am
by mrudula
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!

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

Posted: Wed Dec 01, 2010 2:42 pm
by alt
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.