Mercurial > hg > Applications > AliceVNC
comparison src/main/java/jp/ac/u_ryukyu/alicevnc/NegotiateVNCServer.java @ 32:7d65ad341cc9
refactor
author | sugi |
---|---|
date | Sun, 09 Nov 2014 11:40:40 +0900 |
parents | 556e27a53219 |
children | aace9df1462e |
comparison
equal
deleted
inserted
replaced
31:556e27a53219 | 32:7d65ad341cc9 |
---|---|
1 package jp.ac.u_ryukyu.alicevnc; | 1 package jp.ac.u_ryukyu.alicevnc; |
2 | 2 |
3 import java.util.ArrayList; | 3 import java.util.ArrayList; |
4 | 4 |
5 import jp.ac.u_ryukyu.alicevnc.ChangeRequestMessage.MessageType; | 5 import jp.ac.u_ryukyu.alicevnc.AliceVNCMessage.MessageType; |
6 | 6 |
7 import com.glavsoft.viewer.Viewer; | 7 import com.glavsoft.viewer.Viewer; |
8 | 8 |
9 import alice.codesegment.CodeSegment; | 9 import alice.codesegment.CodeSegment; |
10 import alice.datasegment.CommandType; | 10 import alice.datasegment.CommandType; |
28 String[] args = {"localhost"}; | 28 String[] args = {"localhost"}; |
29 // negotiate VNCServer by Viewer | 29 // negotiate VNCServer by Viewer |
30 Viewer.main(args); | 30 Viewer.main(args); |
31 | 31 |
32 // currentServer Info | 32 // currentServer Info |
33 ChangeRequestMessage currentServerInfo = new ChangeRequestMessage(MessageType.CurrentVNCInfo); | 33 AliceVNCMessage currentServerInfo = new AliceVNCMessage(MessageType.CurrentVNCInfo); |
34 currentServerInfo.name = hostname; | 34 currentServerInfo.name = hostname; |
35 currentServerInfo.allowChange = conf.getAllowChange(); | 35 currentServerInfo.allowChange = conf.getAllowChange(); |
36 ArrayList<String> list = new ArrayList<String>(); | 36 ArrayList<String> list = new ArrayList<String>(); |
37 currentServerInfo.route = list; | 37 currentServerInfo.route = list; |
38 ods.put("changeRequest", currentServerInfo); | 38 ods.put("changeRequest", currentServerInfo); |