FileDocCategorySizeDatePackage
Started.javaAPI DocAzureus 3.0.3.41686Tue Apr 06 11:52:00 BST 2004org.gudy.azureus2.ui.swt.updater.snippets

Started

public class Started extends Object
author
Olivier Chalouhi

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    	  //We wait untill the creating process has ended and released the
        // socket bind.
        boolean ok = false;
        try {
            while(!ok) {
              try{
                ServerSocket server = new ServerSocket(6880, 50, InetAddress.getByName("127.0.0.1"));
                ok = true;
                server.close();
              } catch(Exception e) {
                Logger.log("Exception while trying to bind on port 6880 : " + e);
                Thread.sleep(1000);
              }
            }
        } catch(Exception e) {
         Logger.log("Exception while running Started : " +e);   
        }