Package pushy.modules

Examples of pushy.modules.SocketModule$Protocol


        super(getInetAddress(client, hostname), port);
    }

    private static InetAddress getInetAddress(Client client, String hostname)
    {
        SocketModule socket = (SocketModule)client.getModule("socket");
        try
        {
            return InetAddress.getByName(socket.getHostByName(hostname));
        }
        catch (java.net.UnknownHostException e)
        {
            // This shouldn't occur: passing an IP into getByName will just
            // validate the format of the IP.
View Full Code Here

TOP

Related Classes of pushy.modules.SocketModule$Protocol

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.