FileDocCategorySizeDatePackage
FakeTrackerResponseGenerator.javaAPI DocAzureus 3.0.3.41706Thu Feb 09 19:43:00 GMT 2006org.gudy.azureus2.core3.ipfilter.impl.tests

FakeTrackerResponseGenerator

public class FakeTrackerResponseGenerator extends Object
author
Olivier Chalouhi

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

		String baseRange = "195.68.236.";
		String basePeerId = "-AZ2104-0VR73lDzLejd";
		System.out.print("d8:intervali10e5:peersl");
		for(int i = 100 ; i < 200 ; i++) {
			String iStr = "" + i;
			int iStrLength  = iStr.length();
			String ip = baseRange + iStr;
			String peerId = basePeerId.substring(0,20-iStrLength) + iStr;
			System.out.print("d2:ip" + ip.length() + ":" + ip);
			System.out.print("7:peer id20:" + peerId);
			System.out.print("4:porti3003ee");
		}
		System.out.print("ee");