KLALB UDP TEST

This commit is contained in:
Administrator
2024-01-30 16:54:09 +08:00
parent 722ab9710f
commit b4fccf3a03
67 changed files with 1977 additions and 929 deletions
@@ -58,8 +58,7 @@ public class SendTask {
public void check(int number) throws IOException {
long limit= (1<<(2*Math.min(4,count.get()-1)))*(number<3?200:1000*number)*1000000L;
//long limit=(1<<Math.min(4,count.get()-1)*1000L*number+1000L)*1000000L;
long limit= count.get()*(1000*number+500)*1000000L;
if(checkTime(limit))
run();
}
@@ -72,10 +71,10 @@ public class SendTask {
try {
if(count.get()==0) {
controllker.sendPacketToAddress((Inet6Address) address,
packet, priority+count.get(),2);
packet, priority,1);
}else {
controllker.sendPacketToAddress((Inet6Address) address,
packet, priority+count.get(),2);
packet, priority-1,1);
}
} catch (NoRouteToHostException e) {
}