[maemo-developers] Statistics about recently disconnected network connections
From: Jukka Rissanen jukka.rissanen at gmail.comDate: Wed Jun 16 19:33:32 EEST 2010
- Previous message: Statistics about recently disconnected network connections
- Next message: Statistics about recently disconnected network connections
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 16 June 2010 16:58, Neal H. Walfield <neal at walfield.org> wrote: > Hi, > > Currently, I figure out when a network connection is disconnecting by > listening for ICD_DBUS_API_STATE_SIG signals and checking if the > network connection status is ICD_STATE_DISCONNECTING. When this > happens, I send an ICD_DBUS_API_STATISTICS_REQ to ICD2 specifying the > disconnecting network connection. I get a reply that indicates that I > should see an ICD_DBUS_API_STATISTICS_SIG signal (one argument, value > 1). I don't see any statistics, however. Reason is that when DISCONNECTING signal is sent, there is very little time to do anything before the connection is disconnected. So I suspect that the connection was disconnected before the signal was sent. > What is the right way to get statistics about a closed network > connection? Is this a bug in ICD2 (icd2 is version 0.87+fremantle9+0m5)? I would say it is a feature. As a workaround you could perhaps use the network script at /etc/network/if-down.d and trigger the statistics query from there. > Thanks, > > Neal > Jukka
- Previous message: Statistics about recently disconnected network connections
- Next message: Statistics about recently disconnected network connections
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]