annotate Todo.txt @ 179:c1b91dd27a13

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