Subversion Repositories programming

Rev

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

Rev 189 Rev 190
Line 66... Line 66...
66
        /* Read input and echo back to output */
66
        /* Read input and echo back to output */
67
        while ((inputLine = in.readLine()) != null)
67
        while ((inputLine = in.readLine()) != null)
68
        {
68
        {
69
            /* Echo back what we recieved */
69
            /* Echo back what we recieved */
70
            out.println (inputLine);
70
            out.println (inputLine);
-
 
71
            System.out.println ("Recieved a packet");
71
 
72
            
72
            /* If we recieve a message to quit, do so. */
73
            /* If we recieve a message to quit, do so. */
73
            if (inputLine.equals (exitSeq))
74
            if (inputLine.equals (exitSeq))
-
 
75
            {
-
 
76
                System.out.println ("Recieved exitSeq");
74
                break;
77
                break;
-
 
78
            }
75
        }
79
        }
76
 
80
 
77
        /* Cleanup */
81
        /* Cleanup */
78
        out.close();
82
        out.close();
79
        in.close();
83
        in.close();