INNER CODE UNIT · Java

addRoute

moezbhatti/qksms · android-smsmms/src/main/java/android/net/DhcpInfoInternal.java:55

    public void addRoute(RouteInfo routeInfo) {
        mRoutes.add(routeInfo);
    }

    public Collection<RouteInfo> getRoutes() {
        return Collections.unmodifiableCollection(mRoutes);
    }

    private int convertToInt(String addr) {
        if (addr != null) {
            try {
                InetAddress inetAddress = NetworkUtilsHelper.numericToInetAddress(addr);
                if (inetAddress instanceof Inet4Address) {
                    return NetworkUtilsHelper.inetAddressToInt(inetAddress);
                }
            } catch (IllegalArgumentException e) {
            }
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…