1 /* 2 * Created on 18 Sep 2007 3 * Created by Allan Crooks 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 package com.aelitis.azureus.core.peermanager.messaging.azureus; 19 20 import com.aelitis.azureus.core.peermanager.messaging.Message; 21 import com.aelitis.azureus.core.peermanager.peerdb.PeerItem; 22 23 /** 24 * Represents a class which supports AZ style peer exchange (with a list of 25 * added peers and a list of dropped peers). 26 * 27 * @author Allan Crooks 28 */ 29 public interface AZStylePeerExchange extends Message { getAddedPeers()30 public PeerItem[] getAddedPeers(); getDroppedPeers()31 public PeerItem[] getDroppedPeers(); getMaxAllowedPeersPerVolley(boolean initial, boolean added)32 public int getMaxAllowedPeersPerVolley(boolean initial, boolean added); 33 } 34