Package org.jruby.ext.socket

Examples of org.jruby.ext.socket.SocketUtilsIPV6


* @author Jan Van Besien
*/
public class SocketUtilsIPV6 {

    public String getIPV6NetMask(String ip) {
        IPv6Network strangeNetwork = new IPv6Network().fromString(ip);
        return strangeNetwork.getNetmask().asAddress().toString();
    }
View Full Code Here


            final String networkAddressString = parseNetworkAddress(string);
            int prefixLength = parsePrefixLength(string);

            IPv6Address networkAddress = new IPv6Address().fromString(networkAddressString);

            return new IPv6Network(networkAddress, new IPv6NetworkMask(prefixLength));
        }
View Full Code Here

TOP

Related Classes of org.jruby.ext.socket.SocketUtilsIPV6

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.