/*
 * @(#)TelnetDisconnectedEvent.java
 *
 * Copyright (c) 2001-2002 JScape
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JScape. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JScape.
 */
package com.jscape.inet.telnet;

import java.util.EventObject;


/**
 * Fired by Telnet instance upon disconnect from server.
 */
public class TelnetDisconnectedEvent
        extends EventObject {
    private String host;
    private int port;

    /**
     * Created TelnetDisconnectedEvent.
     *
     * @param source the source of the event
     * @param host   the host of Telnet server
     * @param port   the port of Telnet server
     */
    public TelnetDisconnectedEvent(Object source, String host, int port) {
        super(source);
        this.host = host;
        this.port = port;
    }

    /**
     * Gets host of Telnet server.
     *
     * @return host
     */
    public String getHost() {
        return host;
    }

    /**
     * Gets port of Telnet server.
     *
     * @return port
     */
    public int getPort() {
        return port;
    }
}
