class com.sun.tools.jdi.SocketConnection extends com.sun.jdi.connect.spi.Connection
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: com.sun.tools.jdi.SocketConnection
  super_class: com.sun.jdi.connect.spi.Connection
{
  private java.net.Socket socket;
    descriptor: Ljava/net/Socket;
    flags: (0x0002) ACC_PRIVATE

  private boolean closed;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private java.io.OutputStream socketOutput;
    descriptor: Ljava/io/OutputStream;
    flags: (0x0002) ACC_PRIVATE

  private java.io.InputStream socketInput;
    descriptor: Ljava/io/InputStream;
    flags: (0x0002) ACC_PRIVATE

  private java.lang.Object receiveLock;
    descriptor: Ljava/lang/Object;
    flags: (0x0002) ACC_PRIVATE

  private java.lang.Object sendLock;
    descriptor: Ljava/lang/Object;
    flags: (0x0002) ACC_PRIVATE

  private java.lang.Object closeLock;
    descriptor: Ljava/lang/Object;
    flags: (0x0002) ACC_PRIVATE

  void <init>(java.net.Socket);
    descriptor: (Ljava/net/Socket;)V
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // com.sun.tools.jdi.SocketConnection this
        start local 1 // java.net.Socket socket
         0: .line 48
            aload 0 /* this */
            invokespecial com.sun.jdi.connect.spi.Connection.<init>:()V
         1: .line 41
            aload 0 /* this */
            iconst_0
            putfield com.sun.tools.jdi.SocketConnection.closed:Z
         2: .line 44
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield com.sun.tools.jdi.SocketConnection.receiveLock:Ljava/lang/Object;
         3: .line 45
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield com.sun.tools.jdi.SocketConnection.sendLock:Ljava/lang/Object;
         4: .line 46
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield com.sun.tools.jdi.SocketConnection.closeLock:Ljava/lang/Object;
         5: .line 49
            aload 0 /* this */
            aload 1 /* socket */
            putfield com.sun.tools.jdi.SocketConnection.socket:Ljava/net/Socket;
         6: .line 50
            aload 1 /* socket */
            iconst_1
            invokevirtual java.net.Socket.setTcpNoDelay:(Z)V
         7: .line 51
            aload 0 /* this */
            aload 1 /* socket */
            invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
            putfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
         8: .line 52
            aload 0 /* this */
            aload 1 /* socket */
            invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
            putfield com.sun.tools.jdi.SocketConnection.socketOutput:Ljava/io/OutputStream;
         9: .line 53
            return
        end local 1 // java.net.Socket socket
        end local 0 // com.sun.tools.jdi.SocketConnection this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   10     0    this  Lcom/sun/tools/jdi/SocketConnection;
            0   10     1  socket  Ljava/net/Socket;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
        Name  Flags
      socket  

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // com.sun.tools.jdi.SocketConnection this
         0: .line 56
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.closeLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         1: .line 57
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.closed:Z
            ifeq 4
         2: .line 58
            aload 1
            monitorexit
         3: return
         4: .line 60
      StackMap locals: java.lang.Object
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socketOutput:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.close:()V
         5: .line 61
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.close:()V
         6: .line 62
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socket:Ljava/net/Socket;
            invokevirtual java.net.Socket.close:()V
         7: .line 63
            aload 0 /* this */
            iconst_1
            putfield com.sun.tools.jdi.SocketConnection.closed:Z
         8: .line 56
            aload 1
            monitorexit
         9: goto 12
      StackMap locals:
      StackMap stack: java.lang.Throwable
        10: aload 1
            monitorexit
        11: athrow
        12: .line 65
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.sun.tools.jdi.SocketConnection this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   13     0  this  Lcom/sun/tools/jdi/SocketConnection;
      Exception table:
        from    to  target  type
           1     3      10  any
           4     9      10  any
          10    11      10  any
    Exceptions:
      throws java.io.IOException

  public boolean isOpen();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // com.sun.tools.jdi.SocketConnection this
         0: .line 68
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.closeLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         1: .line 69
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.closed:Z
            ifeq 2
            iconst_0
            goto 3
      StackMap locals: java.lang.Object
      StackMap stack:
         2: iconst_1
      StackMap locals:
      StackMap stack: int
         3: aload 1
            monitorexit
         4: ireturn
         5: .line 68
      StackMap locals:
      StackMap stack: java.lang.Throwable
            aload 1
            monitorexit
         6: athrow
        end local 0 // com.sun.tools.jdi.SocketConnection this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lcom/sun/tools/jdi/SocketConnection;
      Exception table:
        from    to  target  type
           1     4       5  any
           5     6       5  any

  public byte[] readPacket();
    descriptor: ()[B
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=11, args_size=1
        start local 0 // com.sun.tools.jdi.SocketConnection this
         0: .line 74
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
            ifne 2
         1: .line 75
            new com.sun.jdi.connect.spi.ClosedConnectionException
            dup
            ldc "connection is closed"
            invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 77
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.receiveLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         3: .line 82
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.read:()I
            istore 2 /* b1 */
        start local 2 // int b1
         4: .line 83
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.read:()I
            istore 3 /* b2 */
        start local 3 // int b2
         5: .line 84
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.read:()I
            istore 4 /* b3 */
        start local 4 // int b3
         6: .line 85
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.read:()I
            istore 5 /* b4 */
        start local 5 // int b4
         7: .line 86
            goto 12
        end local 5 // int b4
        end local 4 // int b3
        end local 3 // int b2
        end local 2 // int b1
      StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object
      StackMap stack: java.io.IOException
         8: astore 6 /* ioe */
        start local 6 // java.io.IOException ioe
         9: .line 87
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
            ifne 11
        10: .line 88
            new com.sun.jdi.connect.spi.ClosedConnectionException
            dup
            ldc "connection is closed"
            invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 90
      StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object top top top top java.io.IOException
      StackMap stack:
            aload 6 /* ioe */
            athrow
        end local 6 // java.io.IOException ioe
        start local 2 // int b1
        start local 3 // int b2
        start local 4 // int b3
        start local 5 // int b4
        12: .line 95
      StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object int int int int
      StackMap stack:
            iload 2 /* b1 */
            ifge 15
        13: .line 96
            iconst_0
            newarray 8
            aload 1
            monitorexit
        14: areturn
        15: .line 99
      StackMap locals:
      StackMap stack:
            iload 3 /* b2 */
            iflt 16
            iload 4 /* b3 */
            iflt 16
            iload 5 /* b4 */
            ifge 17
        16: .line 100
      StackMap locals:
      StackMap stack:
            new java.io.IOException
            dup
            ldc "protocol error - premature EOF"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
        17: .line 103
      StackMap locals:
      StackMap stack:
            iload 2 /* b1 */
            bipush 24
            ishl
            iload 3 /* b2 */
            bipush 16
            ishl
            ior
            iload 4 /* b3 */
            bipush 8
            ishl
            ior
            iload 5 /* b4 */
            iconst_0
            ishl
            ior
            istore 6 /* len */
        start local 6 // int len
        18: .line 105
            iload 6 /* len */
            ifge 20
        19: .line 106
            new java.io.IOException
            dup
            ldc "protocol error - invalid length"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
        20: .line 109
      StackMap locals: int
      StackMap stack:
            iload 6 /* len */
            newarray 8
            astore 7 /* b */
        start local 7 // byte[] b
        21: .line 110
            aload 7 /* b */
            iconst_0
            iload 2 /* b1 */
            i2b
            bastore
        22: .line 111
            aload 7 /* b */
            iconst_1
            iload 3 /* b2 */
            i2b
            bastore
        23: .line 112
            aload 7 /* b */
            iconst_2
            iload 4 /* b3 */
            i2b
            bastore
        24: .line 113
            aload 7 /* b */
            iconst_3
            iload 5 /* b4 */
            i2b
            bastore
        25: .line 115
            iconst_4
            istore 8 /* off */
        start local 8 // int off
        26: .line 116
            iload 6 /* len */
            iload 8 /* off */
            isub
            istore 6 /* len */
        27: .line 118
            goto 38
        28: .line 121
      StackMap locals: byte[] int
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
            aload 7 /* b */
            iload 8 /* off */
            iload 6 /* len */
            invokevirtual java.io.InputStream.read:([BII)I
            istore 9 /* count */
        start local 9 // int count
        29: .line 122
            goto 34
        end local 9 // int count
      StackMap locals:
      StackMap stack: java.io.IOException
        30: astore 10 /* ioe */
        start local 10 // java.io.IOException ioe
        31: .line 123
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
            ifne 33
        32: .line 124
            new com.sun.jdi.connect.spi.ClosedConnectionException
            dup
            ldc "connection is closed"
            invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
            athrow
        33: .line 126
      StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object int int int int int byte[] int top java.io.IOException
      StackMap stack:
            aload 10 /* ioe */
            athrow
        end local 10 // java.io.IOException ioe
        start local 9 // int count
        34: .line 129
      StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object int int int int int byte[] int int
      StackMap stack:
            iload 9 /* count */
            ifge 36
        35: .line 130
            new java.io.IOException
            dup
            ldc "protocol error - premature EOF"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
        36: .line 132
      StackMap locals:
      StackMap stack:
            iload 6 /* len */
            iload 9 /* count */
            isub
            istore 6 /* len */
        37: .line 133
            iload 8 /* off */
            iload 9 /* count */
            iadd
            istore 8 /* off */
        end local 9 // int count
        38: .line 118
      StackMap locals:
      StackMap stack:
            iload 6 /* len */
            ifgt 28
        39: .line 136
            aload 7 /* b */
            aload 1
            monitorexit
        40: areturn
        end local 8 // int off
        end local 7 // byte[] b
        end local 6 // int len
        end local 5 // int b4
        end local 4 // int b3
        end local 3 // int b2
        end local 2 // int b1
        41: .line 77
      StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object
      StackMap stack: java.lang.Throwable
            aload 1
            monitorexit
        42: athrow
        end local 0 // com.sun.tools.jdi.SocketConnection this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0   43     0   this  Lcom/sun/tools/jdi/SocketConnection;
            4    8     2     b1  I
           12   41     2     b1  I
            5    8     3     b2  I
           12   41     3     b2  I
            6    8     4     b3  I
           12   41     4     b3  I
            7    8     5     b4  I
           12   41     5     b4  I
            9   12     6    ioe  Ljava/io/IOException;
           18   41     6    len  I
           21   41     7      b  [B
           26   41     8    off  I
           29   30     9  count  I
           34   38     9  count  I
           31   34    10    ioe  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           3     7       8  Class java.io.IOException
          28    29      30  Class java.io.IOException
           3    14      41  any
          15    40      41  any
          41    42      41  any
    Exceptions:
      throws java.io.IOException

  public void writePacket(byte[]);
    descriptor: ([B)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=9, args_size=2
        start local 0 // com.sun.tools.jdi.SocketConnection this
        start local 1 // byte[] b
         0: .line 141
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
            ifne 2
         1: .line 142
            new com.sun.jdi.connect.spi.ClosedConnectionException
            dup
            ldc "connection is closed"
            invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 148
      StackMap locals:
      StackMap stack:
            aload 1 /* b */
            arraylength
            bipush 11
            if_icmpge 4
         3: .line 149
            new java.lang.IllegalArgumentException
            dup
            ldc "packet is insufficient size"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 151
      StackMap locals:
      StackMap stack:
            aload 1 /* b */
            iconst_0
            baload
            sipush 255
            iand
            istore 2 /* b0 */
        start local 2 // int b0
         5: .line 152
            aload 1 /* b */
            iconst_1
            baload
            sipush 255
            iand
            istore 3 /* b1 */
        start local 3 // int b1
         6: .line 153
            aload 1 /* b */
            iconst_2
            baload
            sipush 255
            iand
            istore 4 /* b2 */
        start local 4 // int b2
         7: .line 154
            aload 1 /* b */
            iconst_3
            baload
            sipush 255
            iand
            istore 5 /* b3 */
        start local 5 // int b3
         8: .line 155
            iload 2 /* b0 */
            bipush 24
            ishl
            iload 3 /* b1 */
            bipush 16
            ishl
            ior
            iload 4 /* b2 */
            bipush 8
            ishl
            ior
            iload 5 /* b3 */
            iconst_0
            ishl
            ior
            istore 6 /* len */
        start local 6 // int len
         9: .line 156
            iload 6 /* len */
            bipush 11
            if_icmpge 11
        10: .line 157
            new java.lang.IllegalArgumentException
            dup
            ldc "packet is insufficient size"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 163
      StackMap locals: com.sun.tools.jdi.SocketConnection byte[] int int int int int
      StackMap stack:
            iload 6 /* len */
            aload 1 /* b */
            arraylength
            if_icmple 13
        12: .line 164
            new java.lang.IllegalArgumentException
            dup
            ldc "length mis-match"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        13: .line 167
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.sendLock:Ljava/lang/Object;
            dup
            astore 7
            monitorenter
        14: .line 173
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socketOutput:Ljava/io/OutputStream;
            aload 1 /* b */
            iconst_0
            iload 6 /* len */
            invokevirtual java.io.OutputStream.write:([BII)V
        15: .line 174
            goto 20
      StackMap locals: com.sun.tools.jdi.SocketConnection byte[] int int int int int java.lang.Object
      StackMap stack: java.io.IOException
        16: astore 8 /* ioe */
        start local 8 // java.io.IOException ioe
        17: .line 175
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
            ifne 19
        18: .line 176
            new com.sun.jdi.connect.spi.ClosedConnectionException
            dup
            ldc "connection is closed"
            invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
            athrow
        19: .line 178
      StackMap locals: java.io.IOException
      StackMap stack:
            aload 8 /* ioe */
            athrow
        end local 8 // java.io.IOException ioe
        20: .line 167
      StackMap locals:
      StackMap stack:
            aload 7
            monitorexit
        21: goto 24
      StackMap locals:
      StackMap stack: java.lang.Throwable
        22: aload 7
            monitorexit
        23: athrow
        24: .line 182
      StackMap locals:
      StackMap stack:
            return
        end local 6 // int len
        end local 5 // int b3
        end local 4 // int b2
        end local 3 // int b1
        end local 2 // int b0
        end local 1 // byte[] b
        end local 0 // com.sun.tools.jdi.SocketConnection this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   25     0  this  Lcom/sun/tools/jdi/SocketConnection;
            0   25     1     b  [B
            5   25     2    b0  I
            6   25     3    b1  I
            7   25     4    b2  I
            8   25     5    b3  I
            9   25     6   len  I
           17   20     8   ioe  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          14    15      16  Class java.io.IOException
          14    21      22  any
          22    23      22  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
}
SourceFile: "SocketConnection.java"