1 17 18 package org.apache.tomcat.jni; 19 20 25 26 public class Address { 27 28 static public String APR_ANYADDR = "0.0.0.0"; 29 34 public static native boolean fill(Sockaddr info, long sa); 35 36 40 public static native Sockaddr getInfo(long sa); 41 42 65 public static native long info(String hostname, int family, 66 int port, int flags, long p) 67 throws Exception ; 68 74 public static native String getnameinfo(long sa, int flags); 75 76 83 public static native String getip(long sa); 84 85 91 public static native int getservbyname(long sockaddr, String servname); 92 93 99 public static native long get(int which, long sock) 100 throws Exception ; 101 102 112 public static native boolean equal(long a, long b); 113 114 } 115 | Popular Tags |