private byte[] generateHandshake() {
		int i;
		byte[] handshake = new byte[68];
		handshake[0] = (byte) 19;
		String protocol = "BitTorrent protocol";
		for (i = 1; i < 20; i++)
			handshake[i] = (byte) protocol.charAt(i-1);
		for (i = 20; i < 28; i++)
			handshake[i] = 0;
		for (Byte b : torrentInfo.info_hash.array()){
			handshake[i] = b;
			i += 1;
		}
		for (Byte b : manager.getPeerID()){
			handshake[i] = b;
			i += 1;
		}
		return handshake;
	}