Mercurial > hg > trac > TreeVNC > TreeVNC
comparison src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java @ 103:84f254d8bde4
remove isinstaceof
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 23 May 2014 02:20:05 +0900 |
parents | 1f7ee648e1f6 |
children | 660b296d4f75 |
comparison
equal
deleted
inserted
replaced
102:1f7ee648e1f6 | 103:84f254d8bde4 |
---|---|
20 import com.glavsoft.viewer.ViewerImpl; | 20 import com.glavsoft.viewer.ViewerImpl; |
21 | 21 |
22 public class MyRfbProto { | 22 public class MyRfbProto { |
23 final static int FramebufferUpdateRequest = 3; | 23 final static int FramebufferUpdateRequest = 3; |
24 final static int CheckDelay = 11; | 24 final static int CheckDelay = 11; |
25 final static int FramebufferUpdate = 0; | 25 protected final static int FramebufferUpdate = 0; |
26 private ProtocolContext context; | 26 private ProtocolContext context; |
27 //final static String versionMsg_3_855 = "RFB 003.855\n"; | 27 protected final static String versionMsg_3_856 = "RFB 003.856\n"; |
28 final static String versionMsg_3_856 = "RFB 003.856\n"; | |
29 private int clients; | 28 private int clients; |
30 public MulticastQueue<LinkedList<ByteBuffer>> multicastqueue = new MulticastQueue<LinkedList<ByteBuffer>>(); | 29 public MulticastQueue<LinkedList<ByteBuffer>> multicastqueue = new MulticastQueue<LinkedList<ByteBuffer>>(); |
31 private RequestScreenThread rThread; | 30 private RequestScreenThread rThread; |
32 private boolean proxyFlag = true; | 31 private boolean proxyFlag = true; |
33 private EchoClient echo; | 32 private EchoClient echo; |
40 | 39 |
41 public MyRfbProto() { | 40 public MyRfbProto() { |
42 rThread = new RequestScreenThread(this); | 41 rThread = new RequestScreenThread(this); |
43 } | 42 } |
44 | 43 |
44 public boolean isRoot() { | |
45 return false; | |
46 } | |
45 | 47 |
46 public void newClient(AcceptThread acceptThread, final Socket newCli, | 48 public void newClient(AcceptThread acceptThread, final Socket newCli, |
47 final Writer os, final Reader is) throws IOException { | 49 final Writer os, final Reader is) throws IOException { |
48 // createBimgFlag = true; | 50 // createBimgFlag = true; |
49 // rfb.addSockTmp(newCli); | 51 // rfb.addSockTmp(newCli); |