public class com.barchart.udt.AppClient
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.barchart.udt.AppClient
super_class: java.lang.Object
{
static boolean finished;
descriptor: Z
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
putstatic com.barchart.udt.AppClient.finished:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/barchart/udt/AppClient;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=1
start local 0 0: sipush 9000
istore 2
start local 2 1: sipush 10000
newarray 8
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: aload 0
arraylength
iconst_2
if_icmpeq 6
4: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "usage: appclient server_host server_port"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: return
6: StackMap locals: java.lang.String[] top int byte[] java.util.concurrent.Future
StackMap stack:
aload 0
iconst_0
aaload
astore 1
start local 1 7: aload 0
iconst_1
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 2
8: new com.barchart.udt.net.NetSocketUDT
dup
invokespecial com.barchart.udt.net.NetSocketUDT.<init>:()V
astore 5
start local 5 9: ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ldc "win"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 11
10: aload 5
invokevirtual com.barchart.udt.net.NetSocketUDT.socketUDT:()Lcom/barchart/udt/SocketUDT;
getstatic com.barchart.udt.OptionUDT.UDT_MSS:Lcom/barchart/udt/OptionUDT;
sipush 1052
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual com.barchart.udt.SocketUDT.setOption:(Lcom/barchart/udt/OptionUDT;Ljava/lang/Object;)V
11: StackMap locals: java.lang.String[] java.lang.String int byte[] java.util.concurrent.Future com.barchart.udt.net.NetSocketUDT
StackMap stack:
aload 5
new java.net.InetSocketAddress
dup
aload 1
iload 2
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
invokevirtual com.barchart.udt.net.NetSocketUDT.connect:(Ljava/net/SocketAddress;)V
12: aload 5
invokevirtual com.barchart.udt.net.NetSocketUDT.getOutputStream:()Ljava/io/OutputStream;
astore 6
start local 6 13: invokestatic java.util.concurrent.Executors.newSingleThreadExecutor:()Ljava/util/concurrent/ExecutorService;
14: new com.barchart.udt.AppClient$1
dup
aload 5
invokespecial com.barchart.udt.AppClient$1.<init>:(Lcom/barchart/udt/net/NetSocketUDT;)V
15: invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
astore 4
16: iconst_0
istore 7
start local 7 17: goto 20
18: StackMap locals: java.io.OutputStream int
StackMap stack:
aload 6
aload 3
invokevirtual java.io.OutputStream.write:([B)V
19: iinc 7 1
StackMap locals:
StackMap stack:
20: iload 7
ldc 1000000
if_icmplt 18
end local 7 21: iconst_1
putstatic com.barchart.udt.AppClient.finished:Z
22: aload 4
ifnull 33
23: aload 4
invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
pop
end local 6 end local 5 24: goto 33
StackMap locals: java.lang.String[] java.lang.String int byte[] java.util.concurrent.Future
StackMap stack: java.io.IOException
25: astore 5
start local 5 26: aload 5
invokevirtual java.io.IOException.printStackTrace:()V
end local 5 27: goto 33
28: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 5
start local 5 29: aload 5
invokevirtual java.lang.InterruptedException.printStackTrace:()V
end local 5 30: goto 33
31: StackMap locals:
StackMap stack: java.util.concurrent.ExecutionException
astore 5
start local 5 32: aload 5
invokevirtual java.util.concurrent.ExecutionException.printStackTrace:()V
end local 5 33: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 args [Ljava/lang/String;
7 34 1 host Ljava/lang/String;
1 34 2 port I
2 34 3 data [B
3 34 4 monResult Ljava/util/concurrent/Future<Ljava/lang/Boolean;>;
9 24 5 socket Lcom/barchart/udt/net/NetSocketUDT;
13 24 6 os Ljava/io/OutputStream;
17 21 7 i I
26 27 5 ioe Ljava/io/IOException;
29 30 5 e Ljava/lang/InterruptedException;
32 33 5 e Ljava/util/concurrent/ExecutionException;
Exception table:
from to target type
8 24 25 Class java.io.IOException
8 24 28 Class java.lang.InterruptedException
8 24 31 Class java.util.concurrent.ExecutionException
MethodParameters:
Name Flags
args final
public static boolean monitor(com.barchart.udt.SocketUDT);
descriptor: (Lcom/barchart/udt/SocketUDT;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
1: ldc "SendRate(Mb/s)\tRTT(ms)\tCWnd\tPktSndPeriod(us)\tRecvACK\tRecvNAK"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: goto 13
3: StackMap locals:
StackMap stack:
ldc 1000
invokestatic java.lang.Thread.sleep:(J)V
4: aload 0
iconst_0
invokevirtual com.barchart.udt.SocketUDT.updateMonitor:(Z)V
5: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "%.2f\t\t%.2f\t%d\t%.2f\t\t\t%d\t%d\n"
bipush 6
anewarray java.lang.Object
dup
iconst_0
6: aload 0
invokevirtual com.barchart.udt.SocketUDT.monitor:()Lcom/barchart/udt/MonitorUDT;
getfield com.barchart.udt.MonitorUDT.mbpsSendRate:D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
7: aload 0
invokevirtual com.barchart.udt.SocketUDT.monitor:()Lcom/barchart/udt/MonitorUDT;
getfield com.barchart.udt.MonitorUDT.msRTT:D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_2
8: aload 0
invokevirtual com.barchart.udt.SocketUDT.monitor:()Lcom/barchart/udt/MonitorUDT;
getfield com.barchart.udt.MonitorUDT.pktCongestionWindow:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
9: aload 0
invokevirtual com.barchart.udt.SocketUDT.monitor:()Lcom/barchart/udt/MonitorUDT;
getfield com.barchart.udt.MonitorUDT.usPktSndPeriod:D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_4
10: aload 0
invokevirtual com.barchart.udt.SocketUDT.monitor:()Lcom/barchart/udt/MonitorUDT;
getfield com.barchart.udt.MonitorUDT.pktRecvACK:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_5
11: aload 0
invokevirtual com.barchart.udt.SocketUDT.monitor:()Lcom/barchart/udt/MonitorUDT;
getfield com.barchart.udt.MonitorUDT.pktRecvNAK:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
12: invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
13: StackMap locals:
StackMap stack:
getstatic com.barchart.udt.AppClient.finished:Z
ifeq 3
14: iconst_1
ireturn
15: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 16: aload 1
invokevirtual java.lang.Exception.printStackTrace:()V
17: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 socket Lcom/barchart/udt/SocketUDT;
16 18 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 14 15 Class java.lang.Exception
MethodParameters:
Name Flags
socket final
}
SourceFile: "AppClient.java"
NestMembers:
com.barchart.udt.AppClient$1
InnerClasses:
com.barchart.udt.AppClient$1