Mercurial > hg > RemoteEditor > REPSessionManager
view rep/Editor.java @ 26:ad1060ba4213
*** empty log message ***
author | pin |
---|---|
date | Fri, 09 Nov 2007 17:52:54 +0900 |
parents | 7012a944e58f |
children | de8638eb0edd |
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; 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()); } }