0

I want to know what code actually executing behind NetworkInterface.getNetworkInterfaces(); How can i find out it ? Where can i see native method ?

I need it, because suddenly this method start to take too long time (10 sec for only 3 network interfaces)

ArtemP
  • 3
  • 3
  • And what are you going to do once you find out the native implementation? – m0skit0 May 30 '16 at 13:26
  • http://stackoverflow.com/questions/17698971/networkinterface-getnetworkinterfaces-not-listing-all-interfaces has some background - in case you are on linux (http://code.metager.de/source/xref/openjdk/jdk8/jdk/src/windows/native/java/net/NetworkInterface.c#848 is the windows source) – zapl May 30 '16 at 13:26
  • thanks, zapl for sources, i found out that GetIFTable windows API function hangs – ArtemP May 30 '16 at 14:01

0 Answers0