public class com.sun.tools.jdi.SocketTransportService extends com.sun.jdi.connect.spi.TransportService
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.jdi.SocketTransportService
super_class: com.sun.jdi.connect.spi.TransportService
{
private java.util.ResourceBundle messages;
descriptor: Ljava/util/ResourceBundle;
flags: (0x0002) ACC_PRIVATE
void handshake(java.net.Socket, long);
descriptor: (Ljava/net/Socket;J)V
flags: (0x0000)
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
lload 2
l2i
invokevirtual java.net.Socket.setSoTimeout:(I)V
1: ldc "JDWP-Handshake"
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 4
start local 4 2: aload 1
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
aload 4
invokevirtual java.io.OutputStream.write:([B)V
3: aload 4
arraylength
newarray 8
astore 5
start local 5 4: iconst_0
istore 6
start local 6 5: goto 14
6: StackMap locals: byte[] byte[] int
StackMap stack:
aload 1
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
aload 5
iload 6
aload 4
arraylength
iload 6
isub
invokevirtual java.io.InputStream.read:([BII)I
istore 7
start local 7 7: goto 10
end local 7 StackMap locals:
StackMap stack: java.net.SocketTimeoutException
8: pop
9: new java.io.IOException
dup
ldc "handshake timeout"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
start local 7 10: StackMap locals: int
StackMap stack:
iload 7
ifge 13
11: aload 1
invokevirtual java.net.Socket.close:()V
12: new java.io.IOException
dup
ldc "handshake failed - connection prematurally closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
iload 6
iload 7
iadd
istore 6
end local 7 14: StackMap locals:
StackMap stack:
iload 6
aload 4
arraylength
if_icmplt 6
15: iconst_0
istore 7
start local 7 16: goto 20
17: StackMap locals: int
StackMap stack:
aload 5
iload 7
baload
aload 4
iload 7
baload
if_icmpeq 19
18: new java.io.IOException
dup
ldc "handshake failed - unrecognized message from target VM"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
20: iload 7
aload 4
arraylength
if_icmplt 17
end local 7 21: aload 1
iconst_0
invokevirtual java.net.Socket.setSoTimeout:(I)V
22: return
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lcom/sun/tools/jdi/SocketTransportService;
0 23 1 s Ljava/net/Socket;
0 23 2 timeout J
2 23 4 hello [B
4 23 5 b [B
5 23 6 received I
7 8 7 n I
10 14 7 n I
16 21 7 i I
Exception table:
from to target type
6 7 8 Class java.net.SocketTimeoutException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
timeout
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.sun.jdi.connect.spi.TransportService.<init>:()V
1: aload 0
aconst_null
putfield com.sun.tools.jdi.SocketTransportService.messages:Ljava/util/ResourceBundle;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/jdi/SocketTransportService;
public java.lang.String name();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "Socket"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/jdi/SocketTransportService;
public java.lang.String description();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield com.sun.tools.jdi.SocketTransportService.messages:Ljava/util/ResourceBundle;
ifnonnull 3
2: aload 0
ldc "com.sun.tools.jdi.resources.jdi"
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
putfield com.sun.tools.jdi.SocketTransportService.messages:Ljava/util/ResourceBundle;
3: StackMap locals: com.sun.tools.jdi.SocketTransportService
StackMap stack:
aload 1
monitorexit
4: goto 7
StackMap locals:
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.jdi.SocketTransportService.messages:Ljava/util/ResourceBundle;
ldc "socket_transportservice.description"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/tools/jdi/SocketTransportService;
Exception table:
from to target type
1 4 5 any
5 6 5 any
public com.sun.jdi.connect.spi.TransportService$Capabilities capabilities();
descriptor: ()Lcom/sun/jdi/connect/spi/TransportService$Capabilities;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.sun.tools.jdi.SocketTransportService$1
dup
aload 0
invokespecial com.sun.tools.jdi.SocketTransportService$1.<init>:(Lcom/sun/tools/jdi/SocketTransportService;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/jdi/SocketTransportService;
public com.sun.jdi.connect.spi.Connection attach(java.lang.String, long, long);
descriptor: (Ljava/lang/String;JJ)Lcom/sun/jdi/connect/spi/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "address is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
lload 2
lconst_0
lcmp
iflt 3
lload 4
lconst_0
lcmp
ifge 4
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "timeout is negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokestatic com.sun.tools.jdi.SocketTransportService$HostPort.parse:(Ljava/lang/String;)Lcom/sun/tools/jdi/SocketTransportService$HostPort;
astore 6
start local 6 5: new java.net.InetSocketAddress
dup
aload 6
getfield com.sun.tools.jdi.SocketTransportService$HostPort.host:Ljava/lang/String;
ifnonnull 7
6: invokestatic java.net.InetAddress.getLoopbackAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
goto 8
7: StackMap locals: com.sun.tools.jdi.SocketTransportService java.lang.String long long com.sun.tools.jdi.SocketTransportService$HostPort
StackMap stack: new 5 new 5
aload 6
getfield com.sun.tools.jdi.SocketTransportService$HostPort.host:Ljava/lang/String;
StackMap locals: com.sun.tools.jdi.SocketTransportService java.lang.String long long com.sun.tools.jdi.SocketTransportService$HostPort
StackMap stack: new 5 new 5 java.lang.String
8: aload 6
getfield com.sun.tools.jdi.SocketTransportService$HostPort.port:I
9: invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
astore 7
start local 7 10: new java.net.Socket
dup
invokespecial java.net.Socket.<init>:()V
astore 8
start local 8 11: aload 8
aload 7
lload 2
l2i
invokevirtual java.net.Socket.connect:(Ljava/net/SocketAddress;I)V
12: goto 18
StackMap locals: com.sun.tools.jdi.SocketTransportService java.lang.String long long com.sun.tools.jdi.SocketTransportService$HostPort java.net.InetSocketAddress java.net.Socket
StackMap stack: java.net.SocketTimeoutException
13: pop
14: aload 8
invokevirtual java.net.Socket.close:()V
15: goto 17
StackMap locals:
StackMap stack: java.io.IOException
16: pop
17: StackMap locals:
StackMap stack:
new com.sun.jdi.connect.TransportTimeoutException
dup
ldc "timed out trying to establish connection"
invokespecial com.sun.jdi.connect.TransportTimeoutException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
aload 0
aload 8
lload 4
invokevirtual com.sun.tools.jdi.SocketTransportService.handshake:(Ljava/net/Socket;J)V
19: goto 25
StackMap locals:
StackMap stack: java.io.IOException
20: astore 9
start local 9 21: aload 8
invokevirtual java.net.Socket.close:()V
22: goto 24
StackMap locals: com.sun.tools.jdi.SocketTransportService java.lang.String long long com.sun.tools.jdi.SocketTransportService$HostPort java.net.InetSocketAddress java.net.Socket java.io.IOException
StackMap stack: java.io.IOException
23: pop
24: StackMap locals:
StackMap stack:
aload 9
athrow
end local 9 25: StackMap locals:
StackMap stack:
new com.sun.tools.jdi.SocketConnection
dup
aload 8
invokespecial com.sun.tools.jdi.SocketConnection.<init>:(Ljava/net/Socket;)V
areturn
end local 8 end local 7 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lcom/sun/tools/jdi/SocketTransportService;
0 26 1 address Ljava/lang/String;
0 26 2 attachTimeout J
0 26 4 handshakeTimeout J
5 26 6 hostPort Lcom/sun/tools/jdi/SocketTransportService$HostPort;
10 26 7 sa Ljava/net/InetSocketAddress;
11 26 8 s Ljava/net/Socket;
21 25 9 exc Ljava/io/IOException;
Exception table:
from to target type
11 12 13 Class java.net.SocketTimeoutException
14 15 16 Class java.io.IOException
18 19 20 Class java.io.IOException
21 22 23 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
address
attachTimeout
handshakeTimeout
com.sun.jdi.connect.spi.TransportService$ListenKey startListening(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Lcom/sun/jdi/connect/spi/TransportService$ListenKey;
flags: (0x0000)
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 3
1: new java.net.InetSocketAddress
dup
iload 2
invokespecial java.net.InetSocketAddress.<init>:(I)V
astore 3
start local 3 2: goto 4
end local 3 3: StackMap locals:
StackMap stack:
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
astore 3
start local 3 4: StackMap locals: java.net.InetSocketAddress
StackMap stack:
new java.net.ServerSocket
dup
invokespecial java.net.ServerSocket.<init>:()V
astore 4
start local 4 5: iload 2
ifne 7
6: aload 4
iconst_0
invokevirtual java.net.ServerSocket.setReuseAddress:(Z)V
7: StackMap locals: java.net.ServerSocket
StackMap stack:
aload 4
aload 3
invokevirtual java.net.ServerSocket.bind:(Ljava/net/SocketAddress;)V
8: new com.sun.tools.jdi.SocketTransportService$SocketListenKey
dup
aload 4
invokespecial com.sun.tools.jdi.SocketTransportService$SocketListenKey.<init>:(Ljava/net/ServerSocket;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/tools/jdi/SocketTransportService;
0 9 1 localaddress Ljava/lang/String;
0 9 2 port I
2 3 3 sa Ljava/net/InetSocketAddress;
4 9 3 sa Ljava/net/InetSocketAddress;
5 9 4 ss Ljava/net/ServerSocket;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
localaddress
port
public com.sun.jdi.connect.spi.TransportService$ListenKey startListening(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/jdi/connect/spi/TransportService$ListenKey;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
StackMap locals:
StackMap stack:
1: ldc "0"
goto 3
StackMap locals:
StackMap stack:
2: aload 1
StackMap locals:
StackMap stack: java.lang.String
3: invokestatic com.sun.tools.jdi.SocketTransportService$HostPort.parse:(Ljava/lang/String;)Lcom/sun/tools/jdi/SocketTransportService$HostPort;
astore 2
start local 2 4: aload 0
aload 2
getfield com.sun.tools.jdi.SocketTransportService$HostPort.host:Ljava/lang/String;
aload 2
getfield com.sun.tools.jdi.SocketTransportService$HostPort.port:I
invokevirtual com.sun.tools.jdi.SocketTransportService.startListening:(Ljava/lang/String;I)Lcom/sun/jdi/connect/spi/TransportService$ListenKey;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/tools/jdi/SocketTransportService;
0 5 1 address Ljava/lang/String;
4 5 2 hostPort Lcom/sun/tools/jdi/SocketTransportService$HostPort;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
address
public com.sun.jdi.connect.spi.TransportService$ListenKey startListening();
descriptor: ()Lcom/sun/jdi/connect/spi/TransportService$ListenKey;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
iconst_0
invokevirtual com.sun.tools.jdi.SocketTransportService.startListening:(Ljava/lang/String;I)Lcom/sun/jdi/connect/spi/TransportService$ListenKey;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/jdi/SocketTransportService;
Exceptions:
throws java.io.IOException
public void stopListening(com.sun.jdi.connect.spi.TransportService$ListenKey);
descriptor: (Lcom/sun/jdi/connect/spi/TransportService$ListenKey;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.sun.tools.jdi.SocketTransportService$SocketListenKey
ifne 2
1: new java.lang.IllegalArgumentException
dup
ldc "Invalid listener"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
dup
astore 2
monitorenter
3: aload 1
checkcast com.sun.tools.jdi.SocketTransportService$SocketListenKey
invokevirtual com.sun.tools.jdi.SocketTransportService$SocketListenKey.socket:()Ljava/net/ServerSocket;
astore 3
start local 3 4: aload 3
invokevirtual java.net.ServerSocket.isClosed:()Z
ifeq 6
5: new java.lang.IllegalArgumentException
dup
ldc "Invalid listener"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: com.sun.jdi.connect.spi.TransportService$ListenKey java.net.ServerSocket
StackMap stack:
aload 3
invokevirtual java.net.ServerSocket.close:()V
end local 3 7: aload 2
monitorexit
8: goto 11
StackMap locals: com.sun.tools.jdi.SocketTransportService com.sun.jdi.connect.spi.TransportService$ListenKey com.sun.jdi.connect.spi.TransportService$ListenKey
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/tools/jdi/SocketTransportService;
0 12 1 listener Lcom/sun/jdi/connect/spi/TransportService$ListenKey;
4 7 3 ss Ljava/net/ServerSocket;
Exception table:
from to target type
3 8 9 any
9 10 9 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
listener
public com.sun.jdi.connect.spi.Connection accept(com.sun.jdi.connect.spi.TransportService$ListenKey, long, long);
descriptor: (Lcom/sun/jdi/connect/spi/TransportService$ListenKey;JJ)Lcom/sun/jdi/connect/spi/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 4 0: lload 2
lconst_0
lcmp
iflt 1
lload 4
lconst_0
lcmp
ifge 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "timeout is negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
instanceof com.sun.tools.jdi.SocketTransportService$SocketListenKey
ifne 4
3: new java.lang.IllegalArgumentException
dup
ldc "Invalid listener"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
dup
astore 7
monitorenter
5: aload 1
checkcast com.sun.tools.jdi.SocketTransportService$SocketListenKey
invokevirtual com.sun.tools.jdi.SocketTransportService$SocketListenKey.socket:()Ljava/net/ServerSocket;
astore 6
start local 6 6: aload 6
invokevirtual java.net.ServerSocket.isClosed:()Z
ifeq 8
7: new java.lang.IllegalArgumentException
dup
ldc "Invalid listener"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: java.net.ServerSocket com.sun.jdi.connect.spi.TransportService$ListenKey
StackMap stack:
aload 7
monitorexit
9: goto 12
end local 6 StackMap locals: com.sun.tools.jdi.SocketTransportService com.sun.jdi.connect.spi.TransportService$ListenKey long long top com.sun.jdi.connect.spi.TransportService$ListenKey
StackMap stack: java.lang.Throwable
10: aload 7
monitorexit
11: athrow
start local 6 12: StackMap locals: com.sun.tools.jdi.SocketTransportService com.sun.jdi.connect.spi.TransportService$ListenKey long long java.net.ServerSocket
StackMap stack:
aload 6
lload 2
l2i
invokevirtual java.net.ServerSocket.setSoTimeout:(I)V
13: aload 6
invokevirtual java.net.ServerSocket.accept:()Ljava/net/Socket;
astore 7
start local 7 14: goto 17
end local 7 StackMap locals:
StackMap stack: java.net.SocketTimeoutException
15: pop
16: new com.sun.jdi.connect.TransportTimeoutException
dup
ldc "timeout waiting for connection"
invokespecial com.sun.jdi.connect.TransportTimeoutException.<init>:(Ljava/lang/String;)V
athrow
start local 7 17: StackMap locals: java.net.Socket
StackMap stack:
aload 0
aload 7
lload 4
invokevirtual com.sun.tools.jdi.SocketTransportService.handshake:(Ljava/net/Socket;J)V
18: new com.sun.tools.jdi.SocketConnection
dup
aload 7
invokespecial com.sun.tools.jdi.SocketConnection.<init>:(Ljava/net/Socket;)V
areturn
end local 7 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/sun/tools/jdi/SocketTransportService;
0 19 1 listener Lcom/sun/jdi/connect/spi/TransportService$ListenKey;
0 19 2 acceptTimeout J
0 19 4 handshakeTimeout J
6 10 6 ss Ljava/net/ServerSocket;
12 19 6 ss Ljava/net/ServerSocket;
14 15 7 s Ljava/net/Socket;
17 19 7 s Ljava/net/Socket;
Exception table:
from to target type
5 9 10 any
10 11 10 any
13 14 15 Class java.net.SocketTimeoutException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
listener
acceptTimeout
handshakeTimeout
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.tools.jdi.SocketTransportService.name:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/jdi/SocketTransportService;
}
SourceFile: "SocketTransportService.java"
NestMembers:
com.sun.tools.jdi.SocketTransportService$1 com.sun.tools.jdi.SocketTransportService$HostPort com.sun.tools.jdi.SocketTransportService$SocketListenKey
InnerClasses:
public abstract Capabilities = com.sun.jdi.connect.spi.TransportService$Capabilities of com.sun.jdi.connect.spi.TransportService
public abstract ListenKey = com.sun.jdi.connect.spi.TransportService$ListenKey of com.sun.jdi.connect.spi.TransportService
com.sun.tools.jdi.SocketTransportService$1
private HostPort = com.sun.tools.jdi.SocketTransportService$HostPort of com.sun.tools.jdi.SocketTransportService
SocketListenKey = com.sun.tools.jdi.SocketTransportService$SocketListenKey of com.sun.tools.jdi.SocketTransportService