|
From: Vadim T. <vt...@fr...> - 2003-08-27 04:47:43
|
According to Paul Alfille: > How do you monitor device arrival/departure. I've been looking through > the documentation and it isn't obvious (beside polling). Lemme see... That'll be net.sf.dz.daemon.onewire.OneWireNetworkMonitor. Basically, it tries to search the 1-wire network when it has the chance, and notifies the listeners when devices arrive or depart. This is obviously not the scheme you'd want to implement, because it's tightly coupled to the Java way of doing things. Watching arrival signals on low level, and issuing the arrival notifications through the mechanism that you'd consider the best is the way to go. > Paul --vt |