Network Interface Detection
Right now I’m working on detecting when network interfaces come and go, so that, for example, Psi can go online when your network connection becomes active. There is a nice debate as to what constitutes a network connection, but I think for our purposes I’ve decided this will be a non-loopback interface bound to a gateway. This code will be part of IrisNet, which is the new network subsystem for Iris.
Time for platform-specific coding fun again.


I posted the original Win32 patch (to Remko) for suspend/resume in cutestuff/SystemWatch. The intention was for Psi to disconnect & reconnect on sleep/wakeup.
For some reason the reconnect is commented out at the moment (and from at least the initial Darcs import).
void PsiCon::doSleep()
{
setGlobalStatus(Status("",tr("Computer went to sleep"),0,false));
}
void PsiCon::doWakeup()
{
// TODO: Restore the status from before the log out. Make it an (hidden) option for people with a bad wireless connection.
//setGlobalStatus(Status());
}
BTW: I notice that "michalj" says he's porting SystemWatch to Qt4 and including network status detection. Will this conflict with/replicate what you're doing?
http://forum.psi-im.org/post/24770
http://forum.psi-im.org/post/24811
- spam
- offensive
- disagree
- off topic
Like