set default socket options: IPV6_V6ONLY, SO_REUSEADDR
committer: Markus Bröker <mbroeker@largo.homelinux.org>
public class Unix {
public static native int isUnixLink(String name);
public static boolean isLink(String name) {
if (isUnixLink(name) == 1)
return true;
return false;
}
static {
try {
System.loadLibrary("Unix");
} catch (UnsatisfiedLinkError ule) {
ule.printStackTrace();
}
}
}