view src/main/java/jp/ac/u_ryukyu/alicevnc/AliceVNC.java @ 15:87d90513e8f5

add ServerChange Message
author YU
date Sat, 18 Oct 2014 22:05:42 +0900
parents 4faa4619a02f
children 15398aebb0ef
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()){
            
            ods.put("VNCServer", true);
            new StartVNCServer();
            new ReceiveServerInitMessage();
            
        }        
        if (conf.getViewerFlag()){
            new ReceiveServerInitMessage("parent");
        }
        
        new RequestStartVNCServer();
    }

}