# HG changeset patch # User pin # Date 1193987453 -32400 # Node ID b2ebdec2cb50b444b407734679bb5bb9774469cf # Parent b429fe1e15a8b5243a7c102be605ebf30edbd594 *** empty log message *** diff -r b429fe1e15a8 -r b2ebdec2cb50 rep/REPCommand.java --- a/rep/REPCommand.java Fri Nov 02 15:40:40 2007 +0900 +++ b/rep/REPCommand.java Fri Nov 02 16:10:53 2007 +0900 @@ -13,7 +13,7 @@ public String string; private int textsiz; String host; - int port; + String port; public REPCommand(int cmd,int sid,int eid, int seq, int lineno, int textsiz, String string) { this.cmd = cmd; @@ -55,7 +55,7 @@ this.host = host; } - public void setPort(int port) { + public void setPort(String port) { // TODO Auto-generated method stub this.port = port; } diff -r b429fe1e15a8 -r b2ebdec2cb50 rep/REPPacketReceive.java --- a/rep/REPPacketReceive.java Fri Nov 02 15:40:40 2007 +0900 +++ b/rep/REPPacketReceive.java Fri Nov 02 16:10:53 2007 +0900 @@ -67,8 +67,9 @@ //System.out.println(string); //getSocket(string); REPCommand repcommand = new REPCommand(cmd, sid, eid, seqid, lineno, textsiz, string); + //getSocket(repcommand); + System.out.println("received command: " + repcommand.toString()); getSocket(repcommand); - System.out.println("received command: " + repcommand.toString()); return repcommand; } @@ -79,11 +80,11 @@ StringTokenizer st2 = new StringTokenizer(string, ":"); String host = st2.nextToken(); String portstring = st2.nextToken(); - int port = Integer.parseInt(portstring); + //int port = Integer.parseInt(portstring); int socketInfoLength = host.length() + portstring.length() + 2; command.setString(string.substring(0, string.length() - socketInfoLength)); command.setHost(host); - command.setPort(port); + command.setPort(portstring); } } } diff -r b429fe1e15a8 -r b2ebdec2cb50 rep/SessionManager.java --- a/rep/SessionManager.java Fri Nov 02 15:40:40 2007 +0900 +++ b/rep/SessionManager.java Fri Nov 02 16:10:53 2007 +0900 @@ -33,7 +33,7 @@ private Selector selector; private SessionManagerList smList; private String myHost; - private int myPort; + private String myPort; //private SocketChannel sessionchannel; //private boolean co; public SessionManager(int port) {