view src/main/java/jp/ac/u_ryukyu/alicevnc/AliceVNC.java @ 7:4faa4619a02f

refactor
author YU
date Thu, 18 Sep 2014 21:04:29 +0900
parents 9d932f70b29a
children 87d90513e8f5
line wrap: on
line source

package jp.ac.u_ryukyu.alicevnc;

import alice.codesegment.CodeSegment;

public class AliceVNC extends CodeSegment {

    private AliceVNCConfig conf;

    public AliceVNC(AliceVNCConfig conf) {
        this.conf = conf;
    }

    public void run() {
        
        if (conf.getProxyFlag()){
            
            new StartVNCServer();
            new ReceiveServerInitMessage();
        }        
        if (conf.getViewerFlag()){
            new ReceiveServerInitMessage("parent");
        }
    }

}