Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package test.load.concurrency;
 
 
 public class SelfTest {
 
 
     public static void main(String[] argsthrows Exception {
         ProtocolObjects.init("shootist"true);
        if ( args.length == 0 ) . = 10000;
        else . = Integer.parseInt(args[0]);
        Shootist shootist = new Shootist();
        shootist.createProvider(shootist);
        ProtocolObjects.init("shootme"true);
        Shootme shootme = new Shootme();
        SipProvider sipProvider = shootme.createSipProvider();
        sipProvider.addSipListener(shootme);
        shootist.start = System.currentTimeMillis();
        for (int i = 0; i < .i++) {
            Thread.sleep(3);
            shootist.sendInvite();
        }
    }
New to GrepCode? Check out our FAQ X