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 377
            aload 0 /* this */
            invokespecial com.sun.jdi.connect.spi.Connection.<init>:()V
         1: .line 370
            aload 0 /* this */
            iconst_0
            putfield com.sun.tools.jdi.SocketConnection.closed:Z
         2: .line 373
            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 374
            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 375
            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 378
            aload 0 /* this */
            aload 1 /* socket */
            putfield com.sun.tools.jdi.SocketConnection.socket:Ljava/net/Socket;
         6: .line 379
            aload 1 /* socket */
            iconst_1
            invokevirtual java.net.Socket.setTcpNoDelay:(Z)V
         7: .line 380
            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 381
            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 382
            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 385
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.closeLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         1: .line 386
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.closed:Z
            ifeq 4
         2: .line 387
            aload 1
            monitorexit
         3: return
         4: .line 389
      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 390
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.close:()V
         6: .line 391
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.socket:Ljava/net/Socket;
            invokevirtual java.net.Socket.close:()V
         7: .line 392
            aload 0 /* this */
            iconst_1
            putfield com.sun.tools.jdi.SocketConnection.closed:Z
         8: .line 385
            aload 1
            monitorexit
         9: goto 12
      StackMap locals:
      StackMap stack: java.lang.Throwable
        10: aload 1
            monitorexit
        11: athrow
        12: .line 394
      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 397
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.closeLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         1: .line 398
            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 397
      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 403
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
            ifne 2
         1: .line 404
            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 406
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.receiveLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         3: .line 411
            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 412
            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 413
            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 414
            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 415
            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 416
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
            ifne 11
        10: .line 417
            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 419
      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 424
      StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object int int int int
      StackMap stack:
            iload 2 /* b1 */
            ifge 15
        13: .line 425
            iconst_0
            newarray 8
            aload 1
            monitorexit
        14: areturn
        15: .line 428
      StackMap locals:
      StackMap stack:
            iload 3 /* b2 */
            iflt 16
            iload 4 /* b3 */
            iflt 16
            iload 5 /* b4 */
            ifge 17
        16: .line 429
      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 432
      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 434
            iload 6 /* len */
            ifge 20
        19: .line 435
            new java.io.IOException
            dup
            ldc "protocol error - invalid length"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
        20: .line 438
      StackMap locals: int
      StackMap stack:
            iload 6 /* len */
            newarray 8
            astore 7 /* b */
        start local 7 // byte[] b
        21: .line 439
            aload 7 /* b */
            iconst_0
            iload 2 /* b1 */
            i2b
            bastore
        22: .line 440
            aload 7 /* b */
            iconst_1
            iload 3 /* b2 */
            i2b
            bastore
        23: .line 441
            aload 7 /* b */
            iconst_2
            iload 4 /* b3 */
            i2b
            bastore
        24: .line 442
            aload 7 /* b */
            iconst_3
            iload 5 /* b4 */
            i2b
            bastore
        25: .line 444
            iconst_4
            istore 8 /* off */
        start local 8 // int off
        26: .line 445
            iload 6 /* len */
            iload 8 /* off */
            isub
            istore 6 /* len */
        27: .line 447
            goto 38
        28: .line 450
      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 451
            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 452
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
            ifne 33
        32: .line 453
            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 455
      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 458
      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 459
            new java.io.IOException
            dup
            ldc "protocol error - premature EOF"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
        36: .line 461
      StackMap locals:
      StackMap stack:
            iload 6 /* len */
            iload 9 /* count */
            isub
            istore 6 /* len */
        37: .line 462
            iload 8 /* off */
            iload 9 /* count */
            iadd
            istore 8 /* off */
        end local 9 // int count
        38: .line 447
      StackMap locals:
      StackMap stack:
            iload 6 /* len */
            ifgt 28
        39: .line 465
            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 406
      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 470
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
            ifne 2
         1: .line 471
            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 477
      StackMap locals:
      StackMap stack:
            aload 1 /* b */
            arraylength
            bipush 11
            if_icmpge 4
         3: .line 478
            new java.lang.IllegalArgumentException
            dup
            ldc "packet is insufficient size"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 480
      StackMap locals:
      StackMap stack:
            aload 1 /* b */
            iconst_0
            baload
            sipush 255
            iand
            istore 2 /* b0 */
        start local 2 // int b0
         5: .line 481
            aload 1 /* b */
            iconst_1
            baload
            sipush 255
            iand
            istore 3 /* b1 */
        start local 3 // int b1
         6: .line 482
            aload 1 /* b */
            iconst_2
            baload
            sipush 255
            iand
            istore 4 /* b2 */
        start local 4 // int b2
         7: .line 483
            aload 1 /* b */
            iconst_3
            baload
            sipush 255
            iand
            istore 5 /* b3 */
        start local 5 // int b3
         8: .line 484
            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 485
            iload 6 /* len */
            bipush 11
            if_icmpge 11
        10: .line 486
            new java.lang.IllegalArgumentException
            dup
            ldc "packet is insufficient size"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 492
      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 493
            new java.lang.IllegalArgumentException
            dup
            ldc "length mis-match"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        13: .line 496
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.tools.jdi.SocketConnection.sendLock:Ljava/lang/Object;
            dup
            astore 7
            monitorenter
        14: .line 502
            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 503
            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 504
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
            ifne 19
        18: .line 505
            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 507
      StackMap locals: java.io.IOException
      StackMap stack:
            aload 8 /* ioe */
            athrow
        end local 8 // java.io.IOException ioe
        20: .line 496
      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 511
      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: "SocketTransportService.java"