1 /* 2 * Created on Mar 14, 2012 3 * Created by Paul Gardner 4 * 5 * Copyright (C) Azureus Software, Inc, All Rights Reserved. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 */ 19 20 21 package com.aelitis.azureus.core.peermanager.messaging.azureus; 22 23 import org.gudy.azureus2.core3.util.DirectByteBuffer; 24 25 public interface 26 AZUTMetaData 27 { 28 public static final int MSG_TYPE_REQUEST = 0; 29 public static final int MSG_TYPE_DATA = 1; 30 public static final int MSG_TYPE_REJECT = 2; 31 32 public int getMessageType()33 getMessageType(); 34 35 public int getPiece()36 getPiece(); 37 38 public DirectByteBuffer getMetadata()39 getMetadata(); 40 41 public void setMetadata( DirectByteBuffer metadata )42 setMetadata( 43 DirectByteBuffer metadata ); 44 45 public void destroy()46 destroy(); 47 } 48