Commit graph

12 commits

Author SHA1 Message Date
Matthieu Herrb
a8f74130a6 On connexion loss, log the stamp of the last received packet.
This will provide a better starting point to look for events
explaining the issue in other logs.
2012-07-31 14:15:27 +02:00
Matthieu Herrb
b1bb8de8e2 Better error message when failing to resolve server name. 2012-07-31 11:27:03 +02:00
Matthieu Herrb
e651005e16 Clean up variable declarations. 2012-07-31 11:26:45 +02:00
Matthieu Herrb
1bc5c2ff5d Allow interval and timeout to be set on command line. 2012-07-31 11:24:50 +02:00
Matthieu Herrb
421fdadd13 fix uninitialized variable 2012-07-31 09:10:55 +02:00
Matthieu Herrb
bbc8be8551 verbose mode cleanup. 2012-07-31 08:44:18 +02:00
Matthieu Herrb
c00525adaa Remove the use of Posix real-time functions.
The only reason to use clock_gettime() was to take a timestamp
in the signal handler. This is not needed anymoire, so improve
portability by sticking to gettimeofday() and setitimer().
2012-07-31 08:26:05 +02:00
Matthieu Herrb
1882a84527 Only use timesstamps from received packets.
keeping track of the sent packets would require a list of paquets
we're waiting for. This is overkill.
2012-07-31 08:24:04 +02:00
Matthieu Herrb
ca410bd75a Rewrite the main loop to use a timer.
XXX not finished yet, lots of debug information and bugs left.
2012-07-30 20:49:29 +02:00
Matthieu Herrb
13437c1076 Typo in usec precision 2012-07-21 11:57:58 +02:00
Matthieu Herrb
dd047dee09 fix spurious 'connection is back' messages. 2012-07-15 11:29:43 +02:00
Matthieu Herrb
1cf6c3b02b Echoc: a simple udb based link monitoriing application.
Uses the echo service on the other end to send back paquets.
2012-07-15 09:54:00 +02:00