package apz.pirichat.server;
import apz.pirichat.shared.PiriNotConnectedException;

/*
    Connection.java

    This class holds all information about a connection, including pointers
    to the two threads, as well as authentication information about the
    client

*/

public class Connection
{
    // Enumeration holding valid socket/user states
    public static enum Status { STATUS_OFFLINE, STATUS_ONLINE, STATUS_BUSY };
    // Variables specific to the connection
    private boolean isConnected;
    private boolean isAuthenticated;
    private String userName;
    private Status status;

//    private ClientRecvThread z;


    public void disconnect()
    {

    }

    public void sendError(Command pOriginal, String pErrCode, String pErrMessage) throws PiriNotConnectedException
    {


    }

    public void sendMessage(Command pOriginal)
    {

    }


    public void sendReply(Command pOriginal, Command pCommand) throws PiriNotConnectedException
    {

    }

}

