|
|
|
|
|
by ambrop7
5043 days ago
|
|
I've never seen why that would be useful. Switches and Ethernet cards aren't that unreliable in my experience, and I've plugged cables into a different switch in less than a few seconds :) I think if you really needed that, the nicest way would be to add it as a feature to net.backend.waitlink(). See source [1] of this command, and source of sleep() [2] to see how to use a timer. It may also be possible to hack it up without C-coding using blocker(), spawn(), sleep() and maybe other control commands. [1] http://code.google.com/p/badvpn/source/browse/trunk/ncd/modu...
[2] http://code.google.com/p/badvpn/source/browse/trunk/ncd/modu... |
|
Also, thanks for the pointers into the source code. It looks like I would want to make the change around line 67 of net_backend_waitlink.c. I highly doubt I'll actually get around to doing it though :).