Class DHTPluginContactImpl
java.lang.Object
com.biglybt.plugin.dht.impl.DHTPluginContactImpl
- All Implemented Interfaces:
DHTPluginContact
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDHTPluginContactImpl(DHTPluginImpl _plugin, DHTTransportContact _contact) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]call(DHTPluginProgressListener listener, byte[] handler_key, byte[] data, long timeout) protected DHTTransportContactgetDHT()byte[]getID()getName()intbytebooleanisAlive(long timeout) voidisAlive(long timeout, DHTPluginOperationListener listener) booleanopenTunnel(DHTPluginContact[] rendezvous, Map client_data) byte[]read(DHTPluginProgressListener listener, byte[] handler_key, byte[] key, long timeout) voidwrite(DHTPluginProgressListener listener, byte[] handler_key, byte[] key, byte[] data, long timeout)
-
Field Details
-
plugin
-
contact
-
-
Constructor Details
-
DHTPluginContactImpl
-
-
Method Details
-
getDHT
-
getContact
-
getID
public byte[] getID()- Specified by:
getIDin interfaceDHTPluginContact
-
getName
- Specified by:
getNamein interfaceDHTPluginContact
-
getNetwork
public int getNetwork()- Specified by:
getNetworkin interfaceDHTPluginContact
-
getProtocolVersion
public byte getProtocolVersion()- Specified by:
getProtocolVersionin interfaceDHTPluginContact
-
getAddress
- Specified by:
getAddressin interfaceDHTPluginContact
-
exportToMap
- Specified by:
exportToMapin interfaceDHTPluginContact
-
isAlive
public boolean isAlive(long timeout) - Specified by:
isAlivein interfaceDHTPluginContact
-
isAlive
- Specified by:
isAlivein interfaceDHTPluginContact
-
isOrHasBeenLocal
public boolean isOrHasBeenLocal()- Specified by:
isOrHasBeenLocalin interfaceDHTPluginContact
-
openTunnel
- Specified by:
openTunnelin interfaceDHTPluginContact
-
openTunnel
-
read
public byte[] read(DHTPluginProgressListener listener, byte[] handler_key, byte[] key, long timeout) - Specified by:
readin interfaceDHTPluginContact
-
write
public void write(DHTPluginProgressListener listener, byte[] handler_key, byte[] key, byte[] data, long timeout) - Specified by:
writein interfaceDHTPluginContact
-
call
public byte[] call(DHTPluginProgressListener listener, byte[] handler_key, byte[] data, long timeout) - Specified by:
callin interfaceDHTPluginContact
-
getString
- Specified by:
getStringin interfaceDHTPluginContact
-