Subversion Repositories DevTools

Rev

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

Rev 4123 Rev 4212
Line 57... Line 57...
57
                
57
                
58
 
58
 
59
            // Open a reader to receive (and ignore the input)
59
            // Open a reader to receive (and ignore the input)
60
            BufferedReader rd = new BufferedReader(new InputStreamReader(socket.getInputStream()));
60
            BufferedReader rd = new BufferedReader(new InputStreamReader(socket.getInputStream()));
61
 
61
 
-
 
62
//          try {
-
 
63
//              String request = rd.readLine();
-
 
64
//              BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
-
 
65
//              wr.write("Build Daemon nagios inferface command:"+ request +" \n");
-
 
66
//              if (  request.equals( "quit") ) {
-
 
67
//                  wr.write("Got a QUIT\n");
-
 
68
//              }
-
 
69
//              else if (request.equals("status")) {
-
 
70
//                  wr.write("Got a STATUS\n");
-
 
71
//              }
-
 
72
//              else {
-
 
73
//                  wr.write("Unknown command\n");
-
 
74
//              }
-
 
75
//              wr.flush();
-
 
76
//          } catch (IOException e) {
-
 
77
//              mLogger.fatal("NagiosThread caught Exception reading from port:" + e.getMessage() );
-
 
78
//          }
-
 
79
            
-
 
80
 
62
            // Write the status message to the outputstream
81
            // Write the status message to the outputstream
63
            // Currently this is too simple, but it is a start
82
            // Currently this is too simple, but it is a start
64
            //
83
            //
65
            try {
84
            try {
66
                BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
85
                BufferedWriter wr = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));