com.aelitis.azureus.core.dht.netcoords
Interface DHTNetworkPositionProvider

All Known Implementing Classes:
VivaldiPositionProvider

public interface DHTNetworkPositionProvider


Method Summary
 DHTNetworkPosition create(byte[] ID, boolean is_local)
           
 DHTNetworkPosition deserialisePosition(java.io.DataInputStream is)
           
 DHTNetworkPosition getLocalPosition()
          Returns a local, hopefully stable, network position for us or null if none available
 byte getPositionType()
           
 void serialiseStats(java.io.DataOutputStream os)
           
 void shutDown(java.io.DataOutputStream os)
           
 void startUp(java.io.DataInputStream is)
           
 

Method Detail

getPositionType

byte getPositionType()

create

DHTNetworkPosition create(byte[] ID,
                          boolean is_local)

getLocalPosition

DHTNetworkPosition getLocalPosition()
Returns a local, hopefully stable, network position for us or null if none available


deserialisePosition

DHTNetworkPosition deserialisePosition(java.io.DataInputStream is)
                                       throws java.io.IOException
Throws:
java.io.IOException

serialiseStats

void serialiseStats(java.io.DataOutputStream os)
                    throws java.io.IOException
Throws:
java.io.IOException

startUp

void startUp(java.io.DataInputStream is)

shutDown

void shutDown(java.io.DataOutputStream os)