27
|
1 package jp.ac.u_ryukyu.alicevnc;
|
|
2
|
|
3 import com.glavsoft.rfb.protocol.Protocol;
|
|
4
|
|
5 import alice.codesegment.CodeSegment;
|
|
6 import alice.datasegment.CommandType;
|
|
7 import alice.datasegment.Receiver;
|
|
8
|
|
9 public class StopProxy extends CodeSegment {
|
|
10
|
|
11 private Receiver info = ids.create(CommandType.TAKE);
|
|
12
|
|
13 public StopProxy() {
|
28
|
14 info.setKey("protocol");
|
27
|
15 }
|
|
16 @Override
|
|
17 public void run() {
|
|
18 System.out.println("call clean up session");
|
|
19 Protocol p = info.asClass(Protocol.class);
|
|
20 p.cleanUpSession();
|
|
21
|
|
22 }
|
|
23
|
|
24 }
|