package edu.govschool.govchat.net;



/**
 *
 * @author bryce
 */
public class GCServerInfo 
{

}
@@ -33,65 +33,1690 @@
 t;%0A%0A
-%0A%0A/**%0A *%0A * @author bryce%0A */%0Apublic class GCServerInfo %0A%7B%0A
+/**%0A * Class to represent a GovChat server.%0A * There are two pieces of information needed for a client to connect to a%0A * GovChat server, the hostname and port. While we could use a data structure%0A * such as a %3Ccode%3EMap%3C/code%3E to represent this, creating a custom class allows%0A * us full control over how we want to represent a server in GovChat.%0A * @author Mr. Davis%0A */%0Apublic class GCServerInfo %0A%7B%0A    // A nickname for the server%0A    private String nickname;%0A    // The hostname of the server, either as a DNS address or IP%0A    private String hostname;%0A    // The port to bind to%0A    private int port;%0A    %0A    /**%0A     * Empty constructor.%0A     * Creates a new %3Ccode%3EGCServerInfo%3C/code%3E with empty information. The port%0A     * is stored as %3Ccode%3Ejava.lang.Integer.MAX_VALUE%3C/code%3E.%0A     */%0A    public GCServerInfo()%0A    %7B%0A        this(%22%22, %22%22, Integer.MAX_VALUE);%0A    %7D%0A    %0A    /**%0A     * Convenience constructor.%0A     * Creates a new %3Ccode%3EGCServerInfo%3C/code%3E with the given hostname and port%0A     * but without a nickname%0A     * @param hostname the hostname to connect to%0A     * @param port the port to bind to%0A     */%0A    public GCServerInfo(String hostname, int port)%0A    %7B%0A        this(%22%22, hostname, port);%0A    %7D%0A    %0A    /**%0A     * Default constructor.%0A     * Creates a new %3Ccode%3EGCServerInfo%3C/code%3E with the given nickname,%0A     * hostname, and port.%0A     * @param nickname the nickname for the server%0A     * @param hostname the hostname to connect to%0A     * @param port the port to bind to%0A     */%0A    public GCServerInfo(String nickname, String hostname, int port)%0A    %7B%0A        this.nickname = nickname;%0A        this.hostname = hostname;%0A        this.port = port;%0A    %7D
 %0A%7D

Add properties and constructors to GCServerInfo