Mercurial > hg > RemoteEditor > Eclipse
view src/remoteeditor/command/REPCommand.java @ 72:a77ddf4fc5c9
add field REPCommand.throughMaster
add REP.REPCMD_NOP
author | kent |
---|---|
date | Thu, 08 Nov 2007 15:47:53 +0900 |
parents | 403272ec470c |
children | a3dbec69b1cb |
line wrap: on
line source
package remoteeditor.command; import remoteeditor.network.REP; public class REPCommand { public static REPCommand SMCMD_SESSION_JOIN = new REPCommand(REP.SMCMD_SM_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 boolean throughMaster; public String string; private int textsiz; String host; String port; 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; this.throughMaster = false; } 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; } public void setString(String string2) { // TODO Auto-generated method stub string = string2; } public void setHost(String host) { // TODO Auto-generated method stub this.host = host; } public void setPort(String port) { // TODO Auto-generated method stub this.port = port; } public void setThroughMaster(boolean f){ this.throughMaster=f; } }