~hudson-ubuntu/+junk/windows-remote-command

« back to all changes in this revision

Viewing changes to src/main/java/org/jvnet/hudson/remcom/RemComResponse.java

  • Committer: James Page
  • Date: 2010-12-06 10:47:32 UTC
  • Revision ID: james.page@canonical.com-20101206104732-nctfskg5ky3vinf4
Initial release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.jvnet.hudson.remcom;
 
2
 
 
3
import java.io.DataInputStream;
 
4
import java.io.IOException;
 
5
 
 
6
/**
 
7
 * Final process exit code from the service.
 
8
 *
 
9
 * @author Kohsuke Kawaguchi
 
10
 */
 
11
class RemComResponse extends Packet {
 
12
    int errorCode;
 
13
    int returnCode;
 
14
 
 
15
    RemComResponse(DataInputStream in) throws IOException {
 
16
        byte[] r = new byte[8];
 
17
        in.readFully(r);
 
18
        errorCode = readInt(r,0);
 
19
        returnCode = readInt(r,4);
 
20
    }
 
21
}