Mercurial > hg > RemoteEditor > REPSessionManager
changeset 18:b429fe1e15a8
*** empty log message ***
author | pin |
---|---|
date | Fri, 02 Nov 2007 15:40:40 +0900 |
parents | 806e34a6fecd |
children | b2ebdec2cb50 |
files | rep/REPPacketReceive.java rep/SessionManager.java |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/REPPacketReceive.java Fri Nov 02 15:27:31 2007 +0900 +++ b/rep/REPPacketReceive.java Fri Nov 02 15:40:40 2007 +0900 @@ -74,6 +74,7 @@ private void getSocket(REPCommand command) { + if(command.cmd != REP.SMCMD_JOIN){ String string = command.string; StringTokenizer st2 = new StringTokenizer(string, ":"); String host = st2.nextToken(); @@ -83,5 +84,6 @@ command.setString(string.substring(0, string.length() - socketInfoLength)); command.setHost(host); command.setPort(port); + } } }
--- a/rep/SessionManager.java Fri Nov 02 15:27:31 2007 +0900 +++ b/rep/SessionManager.java Fri Nov 02 15:40:40 2007 +0900 @@ -152,6 +152,7 @@ sm_join_ack(channel, repCmd); break; case REP.SMCMD_SM_JOIN_ACK: + myHost = repCmd.host; smList.add(channel); //SessionManagerのリストへ追加 break; case REP.SMCMD_UPDATE: