Mercurial > hg > RemoteEditor > REPSessionManager
view rep/REPCommand.java @ 105:9c97532b9851
*** empty log message ***
author | pin |
---|---|
date | Sat, 22 Dec 2007 21:22:36 +0900 |
parents | a636b651dbce |
children | 53bf80576e84 |
line wrap: on
line source
package 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 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; } public REPCommand() { // TODO Auto-generated constructor stub } 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 REPCommand clone(){ REPCommand command = new REPCommand(cmd, sid, eid, seq, lineno, textsiz, string); return command; } }