Subversion Repositories programming

Rev

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

Rev 260 Rev 279
Line 53... Line 53...
53
        }
53
        }
54
        catch (IOException ex)
54
        catch (IOException ex)
55
        {
55
        {
56
            ex.printStackTrace();
56
            ex.printStackTrace();
57
        }
57
        }
58
        
58
 
59
        String inputLine, outputLine;
59
        String inputLine, outputLine;
60
        DHCPTableEntry e, expired;
60
        DHCPTableEntry e, expired;
61
        String[] splitInput = new String[1];
61
        String[] splitInput = new String[1];
62
 
62
 
63
        // Try to get "req IP <HWAddr>" message
63
        // Try to get "req IP <HWAddr>" message
Line 83... Line 83...
83
 
83
 
84
        // Get the next entry in the DHCPTable
84
        // Get the next entry in the DHCPTable
85
        e = table.addEntry (splitInput[2]);
85
        e = table.addEntry (splitInput[2]);
86
 
86
 
87
        // Print out DHCP Server info
87
        // Print out DHCP Server info
88
        System.out.printf ("Client Added: IP=%s -- HW=%s\n", e.getIPAddr(), e.getHWAddr());
88
        System.out.printf ("Client Added:   IP=%s -- HW=%s\n", e.getIPAddr(), e.getHWAddr());
89
 
89
 
90
        // Send out the client's IP Address
90
        // Send out the client's IP Address
91
        out.println ("IPAddr: " + e.getIPAddr());
91
        out.println ("IPAddr: " + e.getIPAddr());
92
 
92
 
93
        // wait for timeout of this entry
93
        // wait for timeout of this entry