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=2, locals=1, args_size=1
start local 0 0: new com.sun.tools.jdi.SocketTransportServiceCapabilities
dup
invokespecial com.sun.tools.jdi.SocketTransportServiceCapabilities.<init>:()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=13, 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
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 6
start local 6 5: iload 6
ifge 9
6: invokestatic java.net.InetAddress.getLocalHost:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
astore 7
start local 7 7: aload 1
astore 8
start local 8 8: goto 11
end local 8 end local 7 9: StackMap locals: int
StackMap stack:
aload 1
iconst_0
iload 6
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
start local 7 10: aload 1
iload 6
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 8
start local 8 11: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 8
invokestatic java.lang.Integer.decode:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
istore 9
start local 9 12: goto 17
end local 9 StackMap locals:
StackMap stack: java.lang.NumberFormatException
13: pop
14: new java.lang.IllegalArgumentException
dup
15: ldc "unable to parse port number in address"
16: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
start local 9 17: StackMap locals: int
StackMap stack:
new java.net.InetSocketAddress
dup
aload 7
iload 9
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
astore 10
start local 10 18: new java.net.Socket
dup
invokespecial java.net.Socket.<init>:()V
astore 11
start local 11 19: aload 11
aload 10
lload 2
l2i
invokevirtual java.net.Socket.connect:(Ljava/net/SocketAddress;I)V
20: goto 26
StackMap locals: com.sun.tools.jdi.SocketTransportService java.lang.String long long int java.lang.String java.lang.String int java.net.InetSocketAddress java.net.Socket
StackMap stack: java.net.SocketTimeoutException
21: pop
22: aload 11
invokevirtual java.net.Socket.close:()V
23: goto 25
StackMap locals:
StackMap stack: java.io.IOException
24: pop
25: 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
26: StackMap locals:
StackMap stack:
aload 0
aload 11
lload 4
invokevirtual com.sun.tools.jdi.SocketTransportService.handshake:(Ljava/net/Socket;J)V
27: goto 33
StackMap locals:
StackMap stack: java.io.IOException
28: astore 12
start local 12 29: aload 11
invokevirtual java.net.Socket.close:()V
30: goto 32
StackMap locals: com.sun.tools.jdi.SocketTransportService java.lang.String long long int java.lang.String java.lang.String int java.net.InetSocketAddress java.net.Socket java.io.IOException
StackMap stack: java.io.IOException
31: pop
32: StackMap locals:
StackMap stack:
aload 12
athrow
end local 12 33: StackMap locals:
StackMap stack:
new com.sun.tools.jdi.SocketConnection
dup
aload 11
invokespecial com.sun.tools.jdi.SocketConnection.<init>:(Ljava/net/Socket;)V
areturn
end local 11 end local 10 end local 9 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 34 0 this Lcom/sun/tools/jdi/SocketTransportService;
0 34 1 address Ljava/lang/String;
0 34 2 attachTimeout J
0 34 4 handshakeTimeout J
5 34 6 splitIndex I
7 9 7 host Ljava/lang/String;
10 34 7 host Ljava/lang/String;
8 9 8 portStr Ljava/lang/String;
11 34 8 portStr Ljava/lang/String;
12 13 9 port I
17 34 9 port I
18 34 10 sa Ljava/net/InetSocketAddress;
19 34 11 s Ljava/net/Socket;
29 33 12 exc Ljava/io/IOException;
Exception table:
from to target type
11 12 13 Class java.lang.NumberFormatException
19 20 21 Class java.net.SocketTimeoutException
22 23 24 Class java.io.IOException
26 27 28 Class java.io.IOException
29 30 31 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: aload 4
aload 3
invokevirtual java.net.ServerSocket.bind:(Ljava/net/SocketAddress;)V
6: 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 7 0 this Lcom/sun/tools/jdi/SocketTransportService;
0 7 1 localaddress Ljava/lang/String;
0 7 2 port I
2 3 3 sa Ljava/net/InetSocketAddress;
4 7 3 sa Ljava/net/InetSocketAddress;
5 7 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=5, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.String.length:()I
ifne 2
1: StackMap locals:
StackMap stack:
ldc "0"
astore 1
2: StackMap locals:
StackMap stack:
aload 1
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 3: aconst_null
astore 3
start local 3 4: iload 2
iflt 7
5: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
6: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
7: StackMap locals: int java.lang.String
StackMap stack:
aload 1
invokestatic java.lang.Integer.decode:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
istore 4
start local 4 8: goto 13
end local 4 StackMap locals:
StackMap stack: java.lang.NumberFormatException
9: pop
10: new java.lang.IllegalArgumentException
dup
11: ldc "unable to parse port number in address"
12: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
start local 4 13: StackMap locals: int
StackMap stack:
aload 0
aload 3
iload 4
invokevirtual com.sun.tools.jdi.SocketTransportService.startListening:(Ljava/lang/String;I)Lcom/sun/jdi/connect/spi/TransportService$ListenKey;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/tools/jdi/SocketTransportService;
0 14 1 address Ljava/lang/String;
3 14 2 splitIndex I
4 14 3 localaddr Ljava/lang/String;
8 9 4 port I
13 14 4 port I
Exception table:
from to target type
7 8 9 Class java.lang.NumberFormatException
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$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
SocketListenKey = com.sun.tools.jdi.SocketTransportService$SocketListenKey of com.sun.tools.jdi.SocketTransportService