Package com.biglybt.plugin.dht.impl
Class DHTPluginContactImpl
java.lang.Object
com.biglybt.plugin.dht.impl.DHTPluginContactImpl
- All Implemented Interfaces:
DHTPluginContact
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DHTPluginContactImpl
(DHTPluginImpl _plugin, DHTTransportContact _contact) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
call
(DHTPluginProgressListener listener, byte[] handler_key, byte[] data, long timeout) protected DHTTransportContact
getDHT()
byte[]
getID()
getName()
int
byte
boolean
isAlive
(long timeout) void
isAlive
(long timeout, DHTPluginOperationListener listener) boolean
openTunnel
(DHTPluginContact[] rendezvous, Map client_data) byte[]
read
(DHTPluginProgressListener listener, byte[] handler_key, byte[] key, long timeout) void
write
(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:
getID
in interfaceDHTPluginContact
-
getName
- Specified by:
getName
in interfaceDHTPluginContact
-
getNetwork
public int getNetwork()- Specified by:
getNetwork
in interfaceDHTPluginContact
-
getProtocolVersion
public byte getProtocolVersion()- Specified by:
getProtocolVersion
in interfaceDHTPluginContact
-
getAddress
- Specified by:
getAddress
in interfaceDHTPluginContact
-
exportToMap
- Specified by:
exportToMap
in interfaceDHTPluginContact
-
isAlive
public boolean isAlive(long timeout) - Specified by:
isAlive
in interfaceDHTPluginContact
-
isAlive
- Specified by:
isAlive
in interfaceDHTPluginContact
-
isOrHasBeenLocal
public boolean isOrHasBeenLocal()- Specified by:
isOrHasBeenLocal
in interfaceDHTPluginContact
-
openTunnel
- Specified by:
openTunnel
in interfaceDHTPluginContact
-
openTunnel
-
read
public byte[] read(DHTPluginProgressListener listener, byte[] handler_key, byte[] key, long timeout) - Specified by:
read
in interfaceDHTPluginContact
-
write
public void write(DHTPluginProgressListener listener, byte[] handler_key, byte[] key, byte[] data, long timeout) - Specified by:
write
in interfaceDHTPluginContact
-
call
public byte[] call(DHTPluginProgressListener listener, byte[] handler_key, byte[] data, long timeout) - Specified by:
call
in interfaceDHTPluginContact
-
getString
- Specified by:
getString
in interfaceDHTPluginContact
-