0
|
1 package rep;
|
|
2
|
|
3 import java.io.IOException;
|
|
4 import java.net.InetSocketAddress;
|
2
|
5 import java.nio.channels.SelectableChannel;
|
0
|
6 import java.nio.channels.SelectionKey;
|
|
7 import java.nio.channels.Selector;
|
179
|
8
|
178
|
9 import java.util.Iterator;
|
83
|
10 import java.util.LinkedList;
|
144
|
11 import java.util.List;
|
178
|
12 import java.util.concurrent.BlockingQueue;
|
0
|
13
|
123
|
14 import rep.channel.REPServerSocketChannel;
|
133
|
15 import rep.channel.REPSocketChannel;
|
144
|
16 import rep.handler.PacketSet;
|
146
|
17 import rep.handler.REPHandler;
|
148
|
18 import rep.handler.REPHandlerImpl;
|
164
|
19 import rep.handler.REPHandlerInMerge;
|
158
|
20 import rep.channel.REPSelector;
|
56
|
21 import rep.xml.SessionXMLDecoder;
|
45
|
22 import rep.xml.SessionXMLEncoder;
|
|
23
|
1
|
24 //+-------+--------+--------+-------+--------+---------+------+
|
|
25 //| cmd | session| editor | seqid | lineno | textsiz | text |
|
|
26 //| | id | id | | | | |
|
|
27 //+-------+--------+--------+-------+--------+---------+------+
|
|
28 //o-------header section (network order)-------------o
|
|
29 /*int cmd; // command
|
101
|
30 int sid; // session ID : uniqu to editing file
|
123
|
31 int eid; // editor ID : owner editor ID = 1。Session に対して unique
|
122
|
32 int seqno; // Sequence number : sequence number はエディタごとに管理
|
1
|
33 int lineno; // line number
|
101
|
34 int textsize; // textsize : bytesize
|
1
|
35 byte[] text;*/
|
|
36
|
8
|
37 public class SessionManager implements ConnectionListener, REPActionListener{
|
0
|
38
|
|
39
|
163
|
40 //private SessionList sessionlist;
|
164
|
41 private LinkedList<Session> sessionList;
|
83
|
42 private SessionManagerGUI gui;
|
2
|
43 private Selector selector;
|
7
|
44 private SessionManagerList smList;
|
17
|
45 private String myHost;
|
21
|
46 private boolean isMaster = true;
|
160
|
47 //private EditorList ownEditorList;
|
144
|
48 private List<Editor> editorList;
|
78
|
49 private String maxHost;
|
148
|
50 private boolean isSimulation;
|
155
|
51 private List<PacketSet> packetSetList;
|
178
|
52 private BlockingQueue<SessionManagerEvent> waitingQueue;
|
163
|
53 //private List<SessionManagerNode> managerList;
|
95
|
54 private static int temp_port;
|
|
55 private static int send_port;
|
101
|
56
|
|
57 static final int DEFAULT_PORT = 8766;
|
|
58
|
2
|
59 public SessionManager(int port) {
|
182
|
60 gui = new SessionManagerGUI(this);
|
2
|
61 }
|
|
62
|
|
63 public void openSelector() throws IOException{
|
123
|
64 selector = REPSelector.open();
|
2
|
65 }
|
0
|
66
|
155
|
67 public void init(int port) throws InterruptedException, IOException {
|
2
|
68
|
148
|
69 REPServerSocketChannel<REPCommand> ssc = REPServerSocketChannel.<REPCommand>open();
|
122
|
70 ssc.configureBlocking(false); //reuse address 必須
|
101
|
71 ssc.socket().setReuseAddress(true);
|
0
|
72 ssc.socket().bind(new InetSocketAddress(port));
|
|
73 ssc.register(selector, SelectionKey.OP_ACCEPT);
|
6
|
74
|
|
75
|
163
|
76 //sessionlist = new SessionList();
|
144
|
77 sessionList = new LinkedList<Session>();
|
7
|
78 smList = new SessionManagerList();
|
162
|
79 //ownEditorList = new EditorList();
|
144
|
80 editorList = new LinkedList<Editor>();
|
155
|
81 packetSetList = new LinkedList<PacketSet>();
|
0
|
82
|
155
|
83 // main loop
|
|
84 mainLoop();
|
|
85 }
|
|
86
|
|
87 private void mainLoop() throws IOException {
|
0
|
88 while(true){
|
178
|
89 if(checkSend()){
|
|
90 if(selector.selectNow() > 0){
|
|
91 select();
|
|
92 }
|
|
93 continue;
|
|
94 }
|
0
|
95 selector.select();
|
144
|
96 select();
|
|
97 }
|
|
98 }
|
|
99
|
178
|
100 private boolean checkSend() {
|
|
101 for(Iterator<PacketSet> it = packetSetList.iterator(); it.hasNext();){
|
|
102 PacketSet p = it.next();
|
|
103 if(p.getEditor().isMerging()) {
|
|
104 continue;
|
|
105 }else{
|
|
106 manage(p.channel, p.command);
|
|
107 it.remove();
|
|
108 }
|
|
109 }
|
|
110 return false;
|
|
111 }
|
|
112
|
144
|
113 private void select() throws IOException {
|
178
|
114 SessionManagerEvent e = waitingQueue.poll();
|
|
115 if(e != null) {
|
|
116 e.exec();
|
|
117 }
|
148
|
118 for(SelectionKey key : selector.selectedKeys()){
|
144
|
119 if(key.isAcceptable()){
|
|
120 /*** serverChannelはenableになったSelectionKeyのchannel ***/
|
146
|
121 REPServerSocketChannel serverChannel = (REPServerSocketChannel)key.channel();
|
173
|
122 REPSocketChannel channel = serverChannel.accept1(); //keyからchannelを取って、accept
|
144
|
123 registerChannel (selector, channel, SelectionKey.OP_READ);
|
|
124 channel = null;
|
123
|
125
|
144
|
126 }else if(key.isReadable()){
|
|
127
|
146
|
128 REPHandler handler = (REPHandler)key.attachment();
|
|
129 handler.handle(key);
|
144
|
130
|
|
131 }else if(key.isConnectable()){
|
|
132 System.out.println("Connectable");
|
0
|
133 }
|
|
134 }
|
|
135 }
|
1
|
136
|
178
|
137 private void registerChannel(Selector selector, SelectableChannel channel, int ops) throws IOException {
|
2
|
138 if(channel == null) {
|
|
139 return;
|
|
140 }
|
|
141 channel.configureBlocking(false);
|
170
|
142 REPHandler handler = new REPHandlerImpl(-1, this);
|
148
|
143 channel.register(selector, ops, handler);
|
2
|
144 }
|
|
145
|
144
|
146 public void manage(REPSocketChannel<REPCommand> channel, REPCommand receivedCommand) {
|
75
|
147 if(receivedCommand == null) return;
|
158
|
148 //Session session;
|
141
|
149 REPCommand sendCommand = new REPCommand(receivedCommand);
|
178
|
150 REPSocketChannel<REPCommand> send = channel;
|
144
|
151
|
75
|
152 switch(receivedCommand.cmd){
|
144
|
153
|
0
|
154 case REP.SMCMD_JOIN:
|
164
|
155 {
|
|
156 //どのSessionにも属さないエディタをリストに追加
|
|
157 Editor editor = new Editor(editorList.size(), channel);
|
|
158 editor.setHost(myHost);
|
|
159 editorList.add(editor);
|
144
|
160
|
164
|
161 //GUIに反映
|
182
|
162 //gui.setComboEditor(editor.getEID(), channel);
|
|
163 gui.update();
|
164
|
164 }
|
|
165
|
|
166
|
|
167 break;
|
144
|
168
|
1
|
169 case REP.SMCMD_JOIN_ACK:
|
144
|
170
|
1
|
171 break;
|
144
|
172
|
0
|
173 case REP.SMCMD_PUT:
|
164
|
174 {
|
|
175 //エディタのリストに追加
|
|
176 Editor editor = new Editor(editorList.size(), channel);
|
|
177 editorList.add(editor);
|
|
178
|
|
179 //Sessionを生成
|
|
180 int sid = sessionList.size();
|
|
181 editor = new Editor(0, channel);
|
|
182 editor.setHost(myHost);
|
|
183 Session session = new Session(sid, editor);
|
|
184 session.hasOwner(true);
|
|
185 sessionList.add(new Session(sid, editor));
|
|
186
|
|
187 //GUIに反映
|
178
|
188 //gui.update();ぐらいで
|
164
|
189 gui.setComboSession(session.getSID(), session.getName());
|
|
190 gui.setComboEditor(editor.getEID(), editor.getChannel());
|
158
|
191
|
164
|
192 //エディタにAckを送信
|
|
193 sendCommand.setCMD(REP.SMCMD_PUT_ACK);
|
|
194 sendCommand.setEID(editor.getEID());
|
|
195 sendCommand.setSID(session.getSID());
|
|
196 editor.send(sendCommand);
|
144
|
197
|
164
|
198 //他のSessionManagerへSessionの追加を報告
|
|
199 SessionXMLEncoder sessionEncoder = new SessionXMLEncoder(session);
|
|
200 REPCommand command = new REPCommand();
|
|
201 command.setSID(session.getSID());
|
|
202 command.setString(sessionEncoder.sessionListToXML());
|
|
203 command.setCMD(REP.SMCMD_UPDATE);
|
|
204 smList.sendExcept(channel, command);
|
|
205
|
|
206 }
|
|
207
|
|
208 break;
|
133
|
209
|
0
|
210 case REP.SMCMD_SELECT:
|
164
|
211 {
|
178
|
212 //他のSessionManagerをエディタとしてSessionに追加
|
164
|
213 Editor editor = new Editor(channel);
|
|
214 Session session = getSession(receivedCommand.sid);
|
|
215 session.addEditor(editor);
|
|
216
|
|
217 if(session.hasOwner()){
|
|
218 //このSessionManagerがオーナーを持っている場合、Sessionにエディタを追加し、エディタへAckを返す
|
|
219 sendCommand.setCMD(REP.SMCMD_SELECT_ACK);
|
|
220 sendCommand.setEID(editor.getEID());
|
|
221 editor.send(sendCommand);
|
|
222 }else{
|
|
223 //オーナーを持ってない場合は、オーナーを持っているSessionManagerへSELECTコマンドを中継する
|
|
224 Editor owner = session.getOwner();
|
|
225 owner.send(receivedCommand);
|
148
|
226 }
|
164
|
227 }
|
144
|
228
|
164
|
229 break;
|
144
|
230
|
8
|
231 case REP.SMCMD_SELECT_ACK:
|
160
|
232 {
|
85
|
233 String hostport = receivedCommand.string;
|
160
|
234 Editor editor = getEditor(hostport);
|
164
|
235
|
160
|
236 if(editor != null) {
|
|
237 //host, port を見て、このコマンドが自分が送信したSelectコマンドのAckかどうかを判断する
|
|
238 REPCommand command = new REPCommand();
|
|
239 command.setCMD(REP.SMCMD_JOIN_ACK);
|
|
240 command.setSID(receivedCommand.sid);
|
|
241 command.setEID(receivedCommand.eid);
|
|
242 editor.send(command);
|
164
|
243
|
85
|
244 }else{
|
160
|
245 //自分が送信したコマンドでなければ、次のSessionManagerへ中継する
|
85
|
246 smList.sendExcept(channel, receivedCommand);
|
|
247 }
|
160
|
248 }
|
144
|
249
|
164
|
250 break;
|
144
|
251
|
8
|
252 case REP.SMCMD_SM_JOIN:
|
164
|
253
|
160
|
254 {
|
122
|
255 //SessionManagerのリストへ追加
|
83
|
256 smList.add(channel);
|
144
|
257
|
122
|
258 //XMLからSessionListオブジェクトを生成する。
|
77
|
259 SessionXMLDecoder decoder = new SessionXMLDecoder();
|
79
|
260 SessionList receivedSessionList = decoder.decode(receivedCommand.string);
|
144
|
261
|
122
|
262 //SessionListへ追加し変換テーブルを生成する。
|
163
|
263 //sessionlist.update(channel, receivedSessionList);
|
144
|
264
|
122
|
265 //myHost を設定。
|
178
|
266 //立ち上げ時にやるとlocalhostしか取れない
|
76
|
267 if(myHost == null) setMyHostName(getLocalHostName(channel));
|
144
|
268
|
122
|
269 //maxHost を設定。
|
95
|
270 if(setMaxHost(channel, receivedSessionList.getMaxHost())){
|
|
271 sendCommand = new REPCommand();
|
|
272 sendCommand.setCMD(REP.SMCMD_CH_MASTER);
|
|
273 sendCommand.setString(maxHost);
|
|
274 smList.sendExcept(channel, sendCommand);
|
|
275 }
|
144
|
276
|
122
|
277 //SessionListからXMLを生成。
|
|
278 //joinしてきたSessionManagerに対してACKを送信。
|
164
|
279 SessionXMLEncoder sessionlistEncoder = new SessionXMLEncoder(sessionList);
|
78
|
280 sendCommand = new REPCommand();
|
|
281 sendCommand.setCMD(REP.SMCMD_SM_JOIN_ACK);
|
|
282 sendCommand.setString(sessionlistEncoder.sessionListToXML());
|
178
|
283 send.write(sendCommand);
|
144
|
284
|
122
|
285 //その他の SessionManager に対して SMCMD_UPDATEを 送信。
|
78
|
286 sendCommand = new REPCommand();
|
83
|
287 sendCommand.setCMD(REP.SMCMD_UPDATE);
|
78
|
288 sendCommand.setString(receivedCommand.string);
|
|
289 smList.sendExcept(channel, sendCommand);
|
144
|
290
|
160
|
291 }
|
164
|
292 break;
|
144
|
293
|
8
|
294 case REP.SMCMD_SM_JOIN_ACK:
|
144
|
295
|
122
|
296 //XMLからSessionListオブジェクトを生成。
|
82
|
297 SessionXMLDecoder decoder2 = new SessionXMLDecoder();
|
|
298 SessionList receivedSessionList2 = decoder2.decode(receivedCommand.string);
|
144
|
299
|
122
|
300 //maxHostを決定。
|
95
|
301 if(setMaxHost(channel, receivedSessionList2.getMaxHost())){
|
|
302 sendCommand = new REPCommand();
|
|
303 sendCommand.setCMD(REP.SMCMD_CH_MASTER);
|
|
304 sendCommand.setString(maxHost);
|
|
305 smList.sendExcept(channel, sendCommand);
|
|
306 }
|
144
|
307
|
6
|
308 break;
|
144
|
309
|
8
|
310 case REP.SMCMD_UPDATE:
|
144
|
311
|
99
|
312 SessionXMLDecoder decoder3 = new SessionXMLDecoder();
|
|
313 SessionList receivedSessionList3 = decoder3.decode(receivedCommand.string);
|
144
|
314
|
122
|
315 //SessionListへ追加し変換テーブルを生成する。
|
163
|
316 //sessionlist.update(channel, receivedSessionList3);
|
179
|
317 sessionList.add(new Session(new Editor(channel)));
|
178
|
318
|
99
|
319 smList.sendExcept(channel, receivedCommand);
|
144
|
320
|
100
|
321 for(Session session3 : receivedSessionList3.getList()){
|
178
|
322 //gui.update();
|
100
|
323 gui.setComboSession(session3.getSID(), session3.getName());
|
|
324 }
|
144
|
325
|
9
|
326 break;
|
144
|
327
|
9
|
328 case REP.SMCMD_UPDATE_ACK:
|
164
|
329 if(receivedCommand.sid > sessionList.size()){
|
148
|
330 Editor editor = new Editor(channel);
|
75
|
331 editor.setName(receivedCommand.string);
|
144
|
332
|
158
|
333 Session session = new Session(editor);
|
73
|
334 session.addEditor(editor);
|
144
|
335
|
164
|
336 sessionList.add(session);
|
144
|
337
|
83
|
338 gui.setComboSession(session.getSID(), session.getName());
|
73
|
339 }
|
75
|
340 smList.sendToSlave(receivedCommand);
|
1
|
341 break;
|
144
|
342
|
95
|
343 case REP.SMCMD_CH_MASTER:
|
122
|
344 //maxHost を設定。
|
95
|
345 if(setMaxHost(channel, receivedCommand.string)){
|
|
346 sendCommand = new REPCommand();
|
|
347 sendCommand.setCMD(REP.SMCMD_CH_MASTER);
|
|
348 sendCommand.setString(maxHost);
|
|
349 smList.sendExcept(channel, sendCommand);
|
|
350 }
|
|
351 break;
|
144
|
352
|
0
|
353 default:
|
164
|
354 {
|
144
|
355 //sid から Session を取得
|
158
|
356 Session session = getSession(receivedCommand.sid);
|
144
|
357 //マージの処理と次のエディタへコマンドを送信する処理
|
|
358 session.translate(channel, receivedCommand);
|
164
|
359
|
178
|
360
|
167
|
361 Editor editor = session.getEditor(channel);
|
|
362 Editor prevEditor = session.getPrevEditor(editor);
|
|
363
|
179
|
364 //マージ中は前のエディタからのコマンドを受信しない
|
164
|
365 if(editor.isMerging()){
|
|
366 //Handlerを切り替える
|
167
|
367 setMergeState(prevEditor.getChannel(), session.getSID());
|
169
|
368 }else {
|
178
|
369 setNormalState(prevEditor.getChannel(), session.getSID());
|
164
|
370 }
|
|
371 }
|
144
|
372 break;
|
|
373 }
|
|
374 }
|
|
375
|
169
|
376 private void setNormalState(REPSocketChannel<REPCommand> channel, int sid) {
|
|
377 SelectionKey key = channel.keyFor(selector);
|
|
378 key.attach(new REPHandlerImpl(sid, this));
|
|
379 }
|
|
380
|
167
|
381 private void setMergeState(REPSocketChannel<REPCommand> channel, int sid) {
|
|
382 SelectionKey key = channel.keyFor(selector);
|
|
383 key.attach(new REPHandlerInMerge(sid, this));
|
164
|
384 }
|
|
385
|
160
|
386 private Editor getEditor(String hostport) {
|
178
|
387 for(Editor editor : editorList){
|
|
388 if(editor.getHost() == hostport){
|
|
389 return editor;
|
|
390 }
|
|
391 }
|
|
392 return null;
|
|
393 }
|
|
394
|
|
395 public Editor getEditor(REPSocketChannel channel){
|
|
396 for(Editor editor : editorList){
|
|
397 if(editor.getChannel() == channel){
|
|
398 return editor;
|
|
399 }
|
|
400 }
|
160
|
401 return null;
|
|
402 }
|
|
403
|
144
|
404 private Session getSession(int sid) {
|
|
405 for(Session session : sessionList){
|
|
406 if(session.getSID() == sid) return session;
|
|
407 }
|
|
408 return null;
|
0
|
409 }
|
83
|
410
|
139
|
411 private boolean setMaxHost(REPSocketChannel channel, String maxHost2) {
|
179
|
412 if(maxHost.compareTo(maxHost2) > 0){
|
|
413 return false;
|
|
414 }else{
|
|
415 maxHost = maxHost2;
|
|
416 return true;
|
|
417 }
|
139
|
418 }
|
|
419
|
76
|
420 private void setMyHostName(String localHostName) {
|
95
|
421 myHost = localHostName + temp_port;
|
81
|
422 if(maxHost == null) {
|
|
423 maxHost = myHost;
|
|
424 }
|
164
|
425 setHostToEditor(myHost);
|
|
426 }
|
|
427
|
|
428 private void setHostToEditor(String myHost2) {
|
|
429 for(Editor editor : editorList){
|
|
430 editor.setHost(myHost2);
|
|
431 }
|
76
|
432 }
|
0
|
433
|
|
434 public static void main(String[] args) throws InterruptedException, IOException {
|
101
|
435 int port = DEFAULT_PORT;
|
|
436 int port_s = DEFAULT_PORT;
|
113
|
437 //System.setProperty("file.encoding", "UTF-8");
|
82
|
438 if(args.length > 0){
|
39
|
439 port = Integer.parseInt(args[0]);
|
95
|
440 port_s = Integer.parseInt(args[1]);
|
0
|
441 }
|
95
|
442 temp_port = port;
|
|
443 send_port = port_s;
|
0
|
444 SessionManager sm = new SessionManager(port);
|
2
|
445 sm.openSelector();
|
|
446 sm.openWindow();
|
155
|
447 sm.init(port);
|
|
448 sm.mainLoop();
|
0
|
449 }
|
|
450
|
2
|
451 private void openWindow() {
|
83
|
452 Thread th = new Thread( gui );
|
2
|
453 th.start();
|
83
|
454 gui.addConnectionListener(this);
|
|
455 gui.addREPActionListener(this);
|
2
|
456 }
|
|
457
|
178
|
458 public void connectSession(String host) {
|
101
|
459 int port = DEFAULT_PORT;
|
95
|
460 port = send_port;
|
1
|
461 InetSocketAddress addr = new InetSocketAddress(host, port);
|
|
462 try {
|
164
|
463 REPSocketChannel<REPCommand> sessionchannel = REPSocketChannel.<REPCommand>create();
|
1
|
464 sessionchannel.configureBlocking(true);
|
|
465 sessionchannel.connect(addr);
|
6
|
466 while(!sessionchannel.finishConnect()){
|
77
|
467 System.out.print("test afro");
|
6
|
468 }
|
|
469 System.out.println("");
|
2
|
470 registerChannel(selector, sessionchannel, SelectionKey.OP_READ);
|
45
|
471
|
77
|
472 sm_join(sessionchannel);
|
45
|
473
|
1
|
474 }catch (IOException e) {
|
|
475 e.printStackTrace();
|
|
476 }
|
|
477 }
|
77
|
478
|
164
|
479 private void sm_join(REPSocketChannel<REPCommand> channel){
|
79
|
480
|
122
|
481 //SM_JOINコマンドを生成。
|
77
|
482 REPCommand command = new REPCommand();
|
|
483 command.setCMD(REP.SMCMD_SM_JOIN);
|
79
|
484
|
122
|
485 //hostnameをセット。
|
82
|
486 setMyHostName(getLocalHostName(channel));
|
|
487
|
122
|
488 //XMLを生成。送信コマンドにセット。
|
164
|
489 SessionXMLEncoder encoder = new SessionXMLEncoder(sessionList);
|
77
|
490 String string = encoder.sessionListToXML();
|
|
491 command.setString(string);
|
|
492
|
122
|
493 //SM_JOINコマンドを送信。
|
77
|
494 REPPacketSend send = new REPPacketSend(channel);
|
|
495 send.send(command);
|
|
496
|
122
|
497 //SessionManagerのListに追加。
|
77
|
498 smList.add(channel);
|
|
499 }
|
2
|
500
|
139
|
501 private String getLocalHostName(REPSocketChannel channel) {
|
74
|
502 String host = null;
|
|
503 host = channel.socket().getLocalAddress().getHostName();
|
|
504 return host;
|
|
505 }
|
|
506
|
2
|
507 public void connectionOccured(ConnectionEvent event) {
|
178
|
508 try {
|
|
509 waitingQueue.put(event);
|
|
510 } catch (InterruptedException e) {
|
|
511 }
|
|
512 selector.wakeup();
|
2
|
513 }
|
8
|
514
|
|
515 public void ActionOccured(REPActionEvent event) {
|
104
|
516
|
163
|
517 REPSocketChannel<REPCommand> channel = event.getEditorChannel();
|
107
|
518 int sid = event.getSID();
|
164
|
519 Session session = getSession(sid);
|
158
|
520 if(session.hasOwner()){
|
148
|
521 Editor editor = new Editor(channel);
|
|
522 session.addEditor(new Editor(channel));
|
107
|
523 REPCommand sendCommand = new REPCommand();
|
|
524 sendCommand.setCMD(REP.SMCMD_JOIN_ACK);
|
148
|
525 sendCommand.setEID(editor.getEID());
|
107
|
526 sendCommand.setSID(sid);
|
|
527 REPPacketSend sender = new REPPacketSend(channel);
|
|
528 sender.send(sendCommand);
|
|
529 }else {
|
164
|
530 REPSocketChannel<REPCommand> editorChannel = event.getEditorChannel();
|
107
|
531 sid = event.getSID();
|
|
532 Editor editor = new Editor(editorChannel);
|
|
533 editor.setHost(myHost);
|
164
|
534 session = getSession(sid);
|
107
|
535 session.addEditor(editor);
|
|
536
|
158
|
537 Editor owner = session.getOwner();
|
107
|
538
|
|
539 REPCommand command = new REPCommand();
|
|
540 command.setCMD(REP.SMCMD_SELECT);
|
|
541 command.setSID(sid);
|
178
|
542 command.setString(editor.getHost());
|
107
|
543 owner.send(command);
|
|
544 }
|
72
|
545
|
|
546
|
8
|
547 }
|
122
|
548
|
144
|
549 public void addWaitingCommand(PacketSet set) {
|
155
|
550 packetSetList.add(set);
|
144
|
551 }
|
148
|
552
|
0
|
553 }
|