view rep/Editor.java @ 38:de8638eb0edd

*** empty log message ***
author pin
date Sat, 10 Nov 2007 18:51:09 +0900
parents 7012a944e58f
children c873ee0318f8
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());
	}

	public String getName() {
		return null;
	}

}