📄 dhttransportudp.java
字号:
/*
* Created on 21-Jan-2005
* Created by Paul Gardner
* Copyright (C) 2004, 2005, 2006 Aelitis, All Rights Reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* AELITIS, SAS au capital de 46,603.30 euros
* 8 Allee Lenotre, La Grille Royale, 78600 Le Mesnil le Roi, France.
*
*/
package com.aelitis.azureus.core.dht.transport.udp;
import java.net.InetSocketAddress;
import com.aelitis.azureus.core.dht.transport.DHTTransport;
import com.aelitis.azureus.core.dht.transport.DHTTransportContact;
import com.aelitis.azureus.core.dht.transport.DHTTransportException;
/**
* @author parg
*
*/
public interface
DHTTransportUDP
extends DHTTransport
{
public static final byte PROTOCOL_VERSION_2304 = 8;
public static final byte PROTOCOL_VERSION_2306 = 12;
public static final byte PROTOCOL_VERSION_MIN = PROTOCOL_VERSION_2304;
public static final byte PROTOCOL_VERSION_DIV_AND_CONT = 6;
public static final byte PROTOCOL_VERSION_ANTI_SPOOF = 7;
public static final byte PROTOCOL_VERSION_ENCRYPT_TT = 8; // refed from DDBase
public static final byte PROTOCOL_VERSION_ANTI_SPOOF2 = 8;
// we can't fix the originator position until a previous fix regarding the incorrect
// use of a contact's version > sender's version is fixed. This will be done at 2.3.0.4
// We can therefore only apply this fix after then
public static final byte PROTOCOL_VERSION_FIX_ORIGINATOR = 9;
public static final byte PROTOCOL_VERSION_VIVALDI = 10;
public static final byte PROTOCOL_VERSION_REMOVE_DIST_ADD_VER = 11;
public static final byte PROTOCOL_VERSION_XFER_STATUS = 12;
public static final byte PROTOCOL_VERSION_SIZE_ESTIMATE = 13;
// multiple networks reformats the requests and therefore needs the above fix to work
public static final byte PROTOCOL_VERSION_NETWORKS = PROTOCOL_VERSION_FIX_ORIGINATOR;
public static final byte PROTOCOL_VERSION_MAIN = PROTOCOL_VERSION_SIZE_ESTIMATE;
public static final byte PROTOCOL_VERSION_CVS = PROTOCOL_VERSION_SIZE_ESTIMATE;
public DHTTransportContact
importContact(
InetSocketAddress address,
byte protocol_version )
throws DHTTransportException;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -