Package com.jcloisterzone.rmi

Examples of com.jcloisterzone.rmi.ClientStub


        if (name.equals("")) name = UUID.randomUUID().toString().substring(2, 6);
        return name;
    }

    public void connect(String hostname, int port) {
        ClientStub handler = new ClientStub(this);
        RmiProxy rmiProxy = (RmiProxy) Proxy.newProxyInstance(RmiProxy.class.getClassLoader(), new Class[] { RmiProxy.class }, handler);
        try {
            conn = handler.connect(getUserName(), hostname, port);
            conn.setReportingTool(reportingTool = new ReportingTool());
            conn.setRmiProxy(rmiProxy);
        } catch (URISyntaxException e) {
            logger.error(e.getMessage(), e);
        }
View Full Code Here

TOP

Related Classes of com.jcloisterzone.rmi.ClientStub

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.