annotate Todo.txt @ 159:1c9f6acdfeb2

TreeCommand enum
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Jun 2014 09:22:52 +0900
parents 93d903877c6b
children 93c6ba4d3bc4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
153
e68dfd1972ac fix bad names.
oc
parents: 133
diff changeset
1 Fri Jun 13 17:29:02 JST 2014
e68dfd1972ac fix bad names.
oc
parents: 133
diff changeset
2
e68dfd1972ac fix bad names.
oc
parents: 133
diff changeset
3 AcceptThreadをMultiThread化する。(deadlockを防ぐため)
e68dfd1972ac fix bad names.
oc
parents: 133
diff changeset
4 TreeNodeが死んだときに、最後のNodeをそこに置き換える。
156
93d903877c6b update todo.
oc
parents: 153
diff changeset
5 clientをつなげたときにscreen sharingするバグを直す。
93d903877c6b update todo.
oc
parents: 153
diff changeset
6 無線LAN等の複数のネットワークを使えるようにする。
93d903877c6b update todo.
oc
parents: 153
diff changeset
7 無線LAN同士でtreeを構成しないようにパターンマッチをする。
153
e68dfd1972ac fix bad names.
oc
parents: 133
diff changeset
8
133
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
9 Sat Jun 7 11:47:56 JST 2014
123
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
10
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
11 Multicast で root を探す (FIND_ROOT)
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
12 その時に、自分の proxy port/host を付けておく
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
13 root は、それを client address/port として覚えておく (clients)
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
14 root は、そこに接続に来て、「自分のproxy port」を返す。(FIND_ROOT_REPLY)
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
15 これを check box に登録する
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
16 client は、それを選択して、root の proxy port に接続に行く (WHERE_TO_CONNECT)
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
17 そこから、root は、どこに接続に行くかを教えてくれる (CONNECT_TO)
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
18 今度は、そこにclientとして接続する (VERSION_MESSAGE )
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
19
133
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
20 FIND_ROOT (client multicast ) : int port; String hostname (client's address)
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
21
123
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
22 proxy port への接続では、client は自分から書かずに server からの version message を待つ
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
23 普通のVNCは cliet からは VERSION_MESSAGE が行くが、Tree VNC では、
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
24
133
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
25 FIND_ROOT_REPLY (root to client proxy port) : int port; String hostname (root's address)
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
26 WHERE_TO_CONNECT (clinet to root proxy port) : int port; String hostname (client's address)
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
27 CONNECT_TO (root to client ) : int port; String parentAddress (parent's address)
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
28 CONNECT_TO_AS_LEADER (root to client ) : int port; String parentAddress (parent's address)
123
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
29
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
30 が来ることになる。
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
31
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
32 切断時は、子供のleaderが root のproxy port に聞きに行く
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
33
133
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
34 LOST_PARENT (client to root) : int port; String hostname
123
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
35
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
36 root は、接続変更が必要な node の proxy に CONNECT_TO を送る (木経由では送れない。切断されているので)
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
37
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
38 最終的な切断時では、 LOST_PARENT が大量に出てしまうはず。なので、CONNECT_TO は連続しては送らない。
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
39
133
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
40 reportLastNode は CONNECT_TO で良い。(10001 port)
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
41 lostNodeConnection でも CONNECT_TO を使う
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
42
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
43 LOST_PARENT と PARENT_NOT_FOUND の違いはなんだ? LOST_PARENT は leader が出すようだけど。
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
44
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
45 CONNECT_TO で parentNum とか treeNum を送る必要はない。root 内部で接続アドレスから判断する。
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
46 なので、LOST_PARENT は hostname と port だけでよい。
70cbec526039 connection handling
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 123
diff changeset
47
109
457f9dfbf7ce minor fix.
oc
parents: 105
diff changeset
48 Fri May 23 19:32:24 JST 2014
114
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
49
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
50 checkdelay を再実装する
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
51
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
52 reconnect message が port 10001 を使っているが、これでは複数clientをホストで動かした時に動かない。
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 109
diff changeset
53 どのportを使うかをrootに教える必要がある。
109
457f9dfbf7ce minor fix.
oc
parents: 105
diff changeset
54
123
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
55 9999も使われているようだ。
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
56
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
57 普通にclientに接続に行けば、version handshake からスタートするはず。そこに、reconnection プロトコルを
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
58 挟める。MyRfbProto.readVersionMsg()。
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
59
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
60 Recconection は
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
61 root は AcceptClient
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
62 client は EchoClient
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
63 で行われている(らしい)。まず、この名前をまともなものにする。
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
64
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
65 reconnection は木の最後のノードを穴の空いたところに接続することで行われる。これは、逐次で行う必要がある。
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
66 最後には、ほとんどは一斉に切断されるので、そこで破綻しないように注意する。
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
67
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
68 root が client のノードとportを持っているかどうかが重要だが。
233e94a7b5ed add comment
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 114
diff changeset
69
109
457f9dfbf7ce minor fix.
oc
parents: 105
diff changeset
70
100
3c5b53c80af1 fix TODO
oc
parents: 96
diff changeset
71 Thu May 22 21:20:39 JST 2014
3c5b53c80af1 fix TODO
oc
parents: 96
diff changeset
72
3c5b53c80af1 fix TODO
oc
parents: 96
diff changeset
73 1) zlibの同期が外れてる。
105
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 101
diff changeset
74 VncProxyService.javaのinhelitClients の中で
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 101
diff changeset
75 resetDecoderを呼び出せばいいが....
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 101
diff changeset
76 2) DesktopSize ではなく、同じプロトコルで initData を送る方が良い。
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 101
diff changeset
77 2) initData の中の名前を見て、自分だったら、shareしたclientのscreenをhideする。
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 101
diff changeset
78
100
3c5b53c80af1 fix TODO
oc
parents: 96
diff changeset
79
96
76e49dd9c9c5 Client resize without reconnection
oc
parents: 22
diff changeset
80 Wed May 22 16:14:25 JST 2014
76e49dd9c9c5 Client resize without reconnection
oc
parents: 22
diff changeset
81
100
3c5b53c80af1 fix TODO
oc
parents: 96
diff changeset
82 1) 10001, 10002 における固定Portをなくす
3c5b53c80af1 fix TODO
oc
parents: 96
diff changeset
83 2) 木を上に登る通信
3c5b53c80af1 fix TODO
oc
parents: 96
diff changeset
84 3) ClientをCloseしないでresizeする
3c5b53c80af1 fix TODO
oc
parents: 96
diff changeset
85
3c5b53c80af1 fix TODO
oc
parents: 96
diff changeset
86 Update rectangle で desktop size を変更可能
101
34ced177381b update TODO
oc
parents: 100
diff changeset
87 このままで、pixel formatが変更されない
34ced177381b update TODO
oc
parents: 100
diff changeset
88 なのでserverInit をもう一度送るのがよいのではないか
96
76e49dd9c9c5 Client resize without reconnection
oc
parents: 22
diff changeset
89
100
3c5b53c80af1 fix TODO
oc
parents: 96
diff changeset
90 4) display modeでClient view(proxy + view)をあげる
96
76e49dd9c9c5 Client resize without reconnection
oc
parents: 22
diff changeset
91
22
acf1a9eb4710 comment
one
parents: 20
diff changeset
92 Wed Aug 29 23:32:36 JST 2012
acf1a9eb4710 comment
one
parents: 20
diff changeset
93
acf1a9eb4710 comment
one
parents: 20
diff changeset
94 ReceiverTask の framebufferUpdateMessage を、TreeTask に再現しないとだめ。
acf1a9eb4710 comment
one
parents: 20
diff changeset
95
20
98519d16a8c3 getInitData from ProtocolContext
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 Wed Aug 29 22:27:25 JST 2012
98519d16a8c3 getInitData from ProtocolContext
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
97
98519d16a8c3 getInitData from ProtocolContext
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 MyRfbProxy の os が初期化されていない (削除する方が良い)
98519d16a8c3 getInitData from ProtocolContext
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
99
98519d16a8c3 getInitData from ProtocolContext
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 initData が null ( 設定された時に、設定するべき)
98519d16a8c3 getInitData from ProtocolContext
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
101
98519d16a8c3 getInitData from ProtocolContext
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
102