Subversion Repositories programming

Rev

Rev 224 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 224 Rev 260
Line 5... Line 5...
5
 * Class: CS380 - Computer Networking
5
 * Class: CS380 - Computer Networking
6
 *
6
 *
7
 * Assignment: Project #3
7
 * Assignment: Project #3
8
 * Date Last Modified: 2006-02-15
8
 * Date Last Modified: 2006-02-15
9
 *
9
 *
-
 
10
 * Purpose: Implement a client that will request an IP Address from the
-
 
11
 * P3_Server running on TCP Port 1337. Once it gets a lease, it waits for
10
 * Purpose: //FIXME
12
 * the server to tell it that the lease has expired.
11
 ******************************************************************************/
13
 ******************************************************************************/
12
 
14
 
13
import java.net.*;
15
import java.net.*;
14
import java.io.*;
16
import java.io.*;
15
 
17
 
Line 51... Line 53...
51
            System.exit (1);
53
            System.exit (1);
52
        }
54
        }
53
        catch (IOException e)
55
        catch (IOException e)
54
        {
56
        {
55
            System.err.printf ("Couldn't get I/O for the connection to: %s\n", hostName);
57
            System.err.printf ("Couldn't get I/O for the connection to: %s\n", hostName);
-
 
58
            System.err.printf ("Is the P3_Server running?\n");
56
            System.exit (2);
59
            System.exit (2);
57
        }
60
        }
58
 
61
 
59
        // Ask the user for the Hardware Address
62
        // Ask the user for the Hardware Address
60
        System.out.print ("Please type your Hardware Address: ");
63
        System.out.print ("Please type your Hardware Address: ");