Mercurial > hg > RemoteEditor > REPSessionManager
changeset 117:628e7ffeb097
*** empty log message ***
author | pin |
---|---|
date | Sun, 23 Dec 2007 16:19:24 +0900 |
parents | b70c23cbe6bf |
children | bc295d113250 |
files | rep/REPPacketReceive.java rep/REPPacketSend.java rep/SessionManager.java |
diffstat | 3 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/REPPacketReceive.java Sun Dec 23 15:56:26 2007 +0900 +++ b/rep/REPPacketReceive.java Sun Dec 23 16:19:24 2007 +0900 @@ -156,6 +156,9 @@ String string = cb.toString(); textsiz = string.length(); + if(textsiz > 2){ + System.out.println(string); + } //System.out.println("CharBuffer size: " +cb.length()); //System.out.println("textsize: " +textsiz);
--- a/rep/REPPacketSend.java Sun Dec 23 15:56:26 2007 +0900 +++ b/rep/REPPacketSend.java Sun Dec 23 16:19:24 2007 +0900 @@ -17,7 +17,7 @@ socketchannel = sc; } - public ByteBuffer pack(REPCommand command){ + private ByteBuffer pack(REPCommand command){ System.out.println("send command: " + command.toString()); if(command.string == null){ command.setString("test");
--- a/rep/SessionManager.java Sun Dec 23 15:56:26 2007 +0900 +++ b/rep/SessionManager.java Sun Dec 23 16:19:24 2007 +0900 @@ -161,7 +161,7 @@ allEditorList.addEditor(editor); editor.setEID(1); //String string2 = setUTF16(receivedCommand.string); - //editor.setName(string2); + editor.setName(receivedCommand.string); //editor.setName(receivedCommand.string); session = new Session(editor); session.setOwner(true);