Mercurial > hg > RemoteEditor > REPSessionManager
view rep/Editor.java @ 39:c873ee0318f8
*** empty log message ***
author | pin |
---|---|
date | Sat, 10 Nov 2007 21:06:18 +0900 |
parents | de8638eb0edd |
children | 6ead43b2475e |
line wrap: on
line source
package rep; import java.nio.channels.SocketChannel; public class Editor { private int eid; private SocketChannel channel; private SocketChannel nextChannel; private String host; private String port; //public int getEID; private String file; public Editor(int editorNo, SocketChannel channel){ this.eid = editorNo; this.channel = channel; } public SocketChannel getChannel() { return channel; } public void setHost(String host){ this.host = host; } public void setPort(String port){ this.port = port; } public String getHost(){ return host; } public String getPort(){ return port; } public int getEID() { return eid; } public void setEID(int eid) { this.eid = eid; } public String toString(){ return ("eid:" + eid + ":" + channel.socket().getLocalSocketAddress().toString()); } public String getName() { return file; } public void setName(String string) { file = string; } }