import java.net.*;
import java.util.Scanner;  // Import the Scanner class

public class User {
	
	protected InetAddress addIP;
	protected String pseudo;
	protected int nport;
	protected boolean actif;

	public User(int nport){
		try
		{
			this.addIP = InetAddress.getLocalHost();
		}
		catch(UnknownHostException e) {
			System.out.println("Could not find local address!");
		}
		
		this.nport = nport;
		this.actif = true;
		
	}
	
	
	public InetAddress getAddIP() {
		return addIP;
	}


	public void setAddIP(InetAddress addIP) {
		this.addIP = addIP;
	}


	public String getPseudo() {
		return pseudo;
	}


	public void setPseudo(String pseudo) {
	    Scanner myObj = new Scanner(System.in);  // Create a Scanner object
	    
		this.pseudo = pseudo;
	}


	public int getNport() {
		return nport;
	}


	public void setNport(int nport) {
		this.nport = nport;
	}


	public boolean isActif() {
		return actif;
	}


	public void setActif(boolean actif) {
		this.actif = actif;
	}

	

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}
}
