/**
Daniel Tanner
CMPT 352 - Computer Networking
January 26th, 2010
Connection Class for threaded DNS Server
(modified version of G. Gagne's code)
*/
import java.net.*;
import java.io.*;
public class TannConnection implements Runnable
{
//create variables
private Socket client;
private static TannHandler handler = new TannHandler();
public TannConnection(Socket client)
{
this.client = client;
}
//Separate thread
public void run()
{
try
{
System.out.println("Now handing control over to handler");
handler.process(client);
}
catch (java.io.IOException ioe)
{
System.err.println(ioe);
}
}
}
Friday Night Open Thread: Motivation
4 hours ago
No comments:
Post a Comment