public byte[] buildHandshake(Torrent t) {
		byte[] reserved = { 0, 0, 0, 0, 0, 0, 0, 0 };
		byte[] peer_id = "-YS0420-123456789012".getBytes();

		ByteBuffer b = ByteBuffer.allocate(49 + 19);
		b.put((byte) 19);
		b.put("BitTorrent protocol".getBytes());
		b.put(reserved);
		b.put(t.getInfoHash());
		b.put(peer_id);

		return b.array();
	}