Mercurial > hg > RemoteEditor > REPSessionManager
view rep/REPCommand.java @ 6:bdb91f4cea26
It Can connect SessionManagers each other.
author | pin |
---|---|
date | Fri, 19 Oct 2007 01:26:47 +0900 |
parents | 91a33a634fef |
children | b774b87cc2c1 |
line wrap: on
line source
package rep; public class REPCommand { public static REPCommand SMCMD_SESSION_JOIN = new REPCommand(REP.SMCMD_SESSION_JOIN, 0, 0, 0, 0, 0, ""); public int cmd; public int sid; public int eid; public int seq; public int len; public int lineno; public boolean stat; public String string; private int textsiz; public REPCommand(int cmd,int sid,int eid, int seq, int lineno, int textsiz, String string) { this.cmd = cmd; this.sid = sid; this.eid = eid; this.seq = seq; this.textsiz = textsiz; this.lineno = lineno; this.string = string; } public String toString(){ String repCmdString = new String(cmd + "," + sid + "," + eid + "," + seq + "," + lineno + "," + textsiz + "," + string); return repCmdString; } public void setEID(int eid2) { // TODO Auto-generated method stub this.eid = eid2; } public void setCMD(int cmd2) { // TODO Auto-generated method stub this.cmd = cmd2; } public void setSID(int sessionID) { // TODO Auto-generated method stub this.sid = sessionID; } }