public DownloadSubmit( List aLink, CoreCommunication aCore, String sHost, int sPort ) { if ( sPort > 0 ) submitPort = sPort; if ( sHost != null ) submitHost = sHost;  submitList = aLink; core = aCore;   Thread submitter = new Thread(this); submitter.setDaemon(true); submitter.start();  int counter = 0;  while (submitter.isAlive() && counter++ < SERVETIME * 10) { try { Thread.sleep(100); } catch (InterruptedException e3) { if (G2Gui.debug) System.out.println("Interrupted sleep: " + e3); } }
public DownloadSubmit( List aLink, CoreCommunication aCore ) { this( aLink, aCore, null, 0 );
	public DownloadSubmit( List aLink, CoreCommunication aCore, String sHost, int sPort ) {		if ( sPort > 0 )			submitPort = sPort;		if ( sHost != null )			submitHost = sHost;		submitList = aLink;		core = aCore;		/* set up the submitter as daemon-thread */		Thread submitter = new Thread(this);		submitter.setDaemon(true);		submitter.start();				int counter = 0;		/* we sleep up to 20 seconds, waiting for the thread */ 		while (submitter.isAlive() && counter++ < SERVETIME * 10) {			try {				Thread.sleep(100);			} catch (InterruptedException e3) {				if (G2Gui.debug) System.out.println("Interrupted sleep: " + e3);			}		}	}