1 /*
2  * Created on Feb 1, 2007
3  * Created by Paul Gardner
4  * Copyright (C) Azureus Software, Inc, All Rights Reserved.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  *
18  */
19 
20 
21 package com.aelitis.azureus.core.peer.cache;
22 
23 import java.net.InetAddress;
24 
25 import org.gudy.azureus2.core3.torrent.TOTorrent;
26 
27 public interface
28 CacheDiscoverer
29 {
30 	public CachePeer[]
lookup( TOTorrent torent )31 	lookup(
32 		TOTorrent	torent );
33 
34 
35 	public CachePeer
lookup( byte[] peer_id, InetAddress ip, int port )36 	lookup(
37 		byte[]			peer_id,
38 		InetAddress		ip,
39 		int				port );
40 }
41