Networking Forums

Networking Forums > Computer Networking > Linux Networking > pppd & gprs

Reply
 
 
PlutoPlanet
Guest
Posts: n/a

 
      07-14-2007, 04:48 PM
Hello World,

I have written a client-application in C which runs as daemon and
talks to a server via TCP/IP.

My client is connected to the internet by a gprs-modem. Right now I
just start the modem and start pppd (with chat). After that I can
start the daemon which connects to the server. That is not a very good
solution, because a gprs and/or ppp connection can break

What is the best way to keep such a connection alive?
How can I determine from my C-application if a gprs/ppp connection is
alive or not?
How can I determine if pppd is currently connecting/disconnecting?

Any other ideas or suggestions?

yours,
Herwig

 
Reply With Quote
 
 
 
 
Matthias Apitz
Guest
Posts: n/a

 
      07-16-2007, 10:09 AM
PlutoPlanet <(E-Mail Removed)> writes:

>Hello World,


>I have written a client-application in C which runs as daemon and
>talks to a server via TCP/IP.


>My client is connected to the internet by a gprs-modem. Right now I
>just start the modem and start pppd (with chat). After that I can
>start the daemon which connects to the server. That is not a very good
>solution, because a gprs and/or ppp connection can break


>What is the best way to keep such a connection alive?
>How can I determine from my C-application if a gprs/ppp connection is
>alive or not?
>How can I determine if pppd is currently connecting/disconnecting?


>Any other ideas or suggestions?


The company I'm working for does this (PPP over GPRS, and a TCP/IP
client/server solution) to provide in a production environment a
solution used by public libraries which run a branch of the
library as a so called 'book bus' (a real bus moving around in
town and reader can borrow books in the bus and return them
next week again). The (UNIX-) server runs in the city computer
centre while the client in the bus connected to it runs in XP
having a Linux box for the PPP over GPRS.

The easiest way in the client to detect that all is fine, is that
the used protocol over TCP/IP is working fine.

matthias
--
Matthias Apitz
Manager Technical Support - OCLC PICA GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <(E-Mail Removed)> - w http://www.oclcpica.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
OCLC PICA GmbH, Geschaeftsfuehrer: Christine Magin-Weeger, Norbert Weinberger
Sitz der Gesellschaft: Oberhaching, HRB Muenchen: 113261
 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      07-16-2007, 06:04 PM
On Sat, 14 Jul 2007 09:48:15 -0700, PlutoPlanet
<(E-Mail Removed)> wrote:
>
>
> Hello World,
>
> I have written a client-application in C which runs as daemon and
> talks to a server via TCP/IP.
>
> My client is connected to the internet by a gprs-modem. Right now I
> just start the modem and start pppd (with chat). After that I can
> start the daemon which connects to the server. That is not a very good
> solution, because a gprs and/or ppp connection can break
>
> What is the best way to keep such a connection alive?
> How can I determine from my C-application if a gprs/ppp connection is
> alive or not?
> How can I determine if pppd is currently connecting/disconnecting?
>

Maybe by using lcp-echo-interval and monitoring the log output from
pppd?


--
For every action, there is an equal and opposite criticism.
-- Harrison
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
pppd & gprs cannot get ip (long message) Eismann Linux Networking 1 10-03-2006 11:51 PM
GPRS card connected to the GPRS network in Linux 2.6.15, can send SMS messages, but still no internet? D2army Linux Networking 10 02-19-2006 03:09 AM
Slackware, PPPD and GPRS Slacknix Linux Networking 3 02-13-2006 03:02 PM
GPRS / pppd 132.a.dabei Linux Networking 11 07-21-2005 01:55 AM
pppd gotcha with ATT GPRS service using SE GC82 Phil Buonadonna Linux Networking 1 03-03-2004 03:35 PM



1 2 3 4 5 6 7 8 9 10 11