Port of Android Port Scanner to use JNI and C to use raw sockets.