Strumenti Utente

Strumenti Sito


lpr-b-2007-2008:namequery
package nslookup;
 
import java.io.Serializable;
 
/** this is the class used to model requests to the name server 
 * 
 * @author marcod
 *
 */
public class NameQuery implements Serializable {
 
        /** will host the name of the queryed host */
        String hostName = null; 
        /** true if we accept an answer from cache */
        boolean cached = false; 
 
        public NameQuery(String h, boolean b) {
                hostName = h; 
                cached = b;
        }
 
        public String toString() { return hostName; }
        public String getHostname() { return hostName; }
        public boolean getCached() { return cached; }
 
}
lpr-b-2007-2008/namequery.txt · Ultima modifica: 19/09/2008 alle 14:08 (16 anni fa) (modifica esterna)