AdaptorsInfo questions

tsdt

Active Member
Licensed User
Hi Agraham,

I noticed that you had created Adaptorsinfo.dll quite some time ago. Currently I am using it, and I think it is really excellent. However, I noticed that as I was reading the adaptorsinfo happily, there is a significant lag of the output.

I had tried an experiment on plugging in and out of my LAN cable to see how it managed to detect it and I noticed that if I plug in and out of the cable too quickly, I wont be able to detect it. The best timing is if I were to leave it more than 5 mins, then, I would able to see there is a change in the IP.

I had a simple loop to check for the info and if there is a change in the info, I will prompt out the changes.

BTW, do you have the source code for this? And do you have any other ways to check for this information?


Thanks
 

agraham

Expert
Licensed User
Longtime User
The source code, which is utterly trivial, wasn't posted because it requires a C# compilation mode that was not at the time supported by Basic4ppc and so was of no use. As the mode is now supported I've posted the source in a separate zip here ll http://www.b4x.com/forum/additional-libraries/2565-byteconverter-library.html#post14218.

Any lag i updating the information is nothing to do with the library. There may be other ways of getting some of the information but as I am not a Win32 API specialist I don't know.
 

tsdt

Active Member
Licensed User
The source code, which is utterly trivial, wasn't posted because it requires a C# compilation mode that was not at the time supported by Basic4ppc and so was of no use. As the mode is now supported I've posted the source in a separate zip here ll http://www.b4x.com/forum/additional-libraries/2565-byteconverter-library.html#post14218.

Any lag i updating the information is nothing to do with the library. There may be other ways of getting some of the information but as I am not a Win32 API specialist I don't know.

I noticed something is quite interesting...

When it detecting the IP address, I noticed that the timing is almost same as the network connection of the system, in this case, I think there should be correct. However, strange thing is that, if I disconnect the network, I noticed that my system can immediately detect that network is not connected, as for the scanning, it is talking triple the time to inform me that the IP is 0.0.0.0 in comparison to the system connection detection, which seems immediate.... In this case, is it much faster to check for the number of adaptor instead of the information??
 
Top