C# SMS API keepalive
To keepalive the IP SMS link between the C# SMS API and the sms gateway you need to establish a permanent connection with the C# SMS API's connect method. The system will automatically send keepalive requests.
The C#/.Net SMS api keepalive procedure
To send keepalive requests from the C#/.Net SMS api simply keep the connection open
- Step 1: Create connection
- Step 2: 30 seconds of inactivity
- Step 3: Send keepalive to keep the TCP/IP link open
C# sms api keepalive example:
Client.Connect(host,port,user,pass); ... Keepalive packets are sent automatically if there is no traffic ... Client.Send(msg);
Keepalive packets are necessary because firewall rules, vpn connections or dynamically allocated IP SMS routes on the Internet could be disconnected after a period of inactivity. By sending keepalive packets both the C# SMS API client and the SMS gateway can be certain, that the connection is still open.
Keepalive packets are only sent if no other SMS traffic is moving on the link.
More information
- Kako poslati SMS iz C#
- Primanje SMS-a u C#
- C# SMS API povezivanje za slanje SMS-a
- C# SMS API - prekid veze s SMS pristupnikom
- C# SMS API - održavanje SMS veze aktivnom
- C# SMS API - slanje tekstualne poruke
- C# SMS API - SMS prihvaćen za isporuku
- C# SMS API - SMS nije prihvaćen za isporuku
- C# SMS API - poslano
- C# SMS API - slanje nije uspjelo
- C# SMS API - uspješno izvješće o isporuci
- C# SMS API - izvješće o neuspjeloj isporuci
- C# SMS API - alfanumerički ID pošiljatelja
- C# SMS API kako koristiti kratki broj kao ID pošiljatelja
- C# SMS API klasa tekstualne poruke