Mercurial > hg > Members > you > TreeVNC
changeset 35:cca2a548ed95
before update
author | one |
---|---|
date | Tue, 24 Apr 2012 08:34:34 +0900 |
parents | 32b266967c2c |
children | cc47789454c3 1257c9e46975 6d92ae35709a |
files | src/treeVnc/AcceptClient.java src/treeVnc/MyVncClient.java |
diffstat | 2 files changed, 5 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/treeVnc/AcceptClient.java Wed Apr 18 19:14:17 2012 +0900 +++ b/src/treeVnc/AcceptClient.java Tue Apr 24 08:34:34 2012 +0900 @@ -120,7 +120,7 @@ if (line != null) { ls.add(line); } - displyLinkedList(ls); + //displyLinkedList(ls); } private void displyLinkedList( LinkedList<String> ls) { @@ -169,7 +169,7 @@ if (Integer.parseInt(treeNumber)==ls.size()-1) return; */ - displyLinkedList(ls); + //displyLinkedList(ls); os.println(port); leaderflag = decisionLeader(Integer.parseInt(treeNumber),treebranch); os.println(treeNumber); @@ -269,17 +269,17 @@ if (passNumber == 0) { passNumber++; numberZone = ((treeNum - 1) / treebranch); - System.out.println(treeNum + "--wait--"); + //System.out.println(treeNum + "--wait--"); replyLeaderNode(os,is,port,String.valueOf(treeNum)); notifyAll(); passNumber = 0; } else if (numberZone == ((treeNum - 1) / treebranch)) { if (++passNumber == treebranch) { - System.out.println(treeNum + "--notify--"); + //System.out.println(treeNum + "--notify--"); passNumber = 0; replyNormalChildren(os,is,port,String.valueOf(treeNum),true); } else { - System.out.println(treeNum + "--waityobi--"); + //System.out.println(treeNum + "--waityobi--"); replyNormalChildren(os,is,port,String.valueOf(treeNum),false); wait(TIMEOUT); }
--- a/src/treeVnc/MyVncClient.java Wed Apr 18 19:14:17 2012 +0900 +++ b/src/treeVnc/MyVncClient.java Tue Apr 24 08:34:34 2012 +0900 @@ -58,10 +58,6 @@ getHost = new TextBoxClient(); getHost.ipRegister(); pHost = getHost.getAddressOption(); - if(pHost=="notFound"){ - - } - port = Integer.parseInt(getHost.getPortOption()); } } else {