Methods Summary |
---|
public void | addListener(DHTTransportListener l)
|
public DHTTransportContact | getLocalContact()Gives access to the node ID for this transport
|
public int | getNetwork()
|
public int | getPort()
|
public byte | getProtocolVersion()
|
public DHTTransportContact[] | getReachableContacts()
|
public DHTTransportStats | getStats()
|
public DHTTransportContact | importContact(java.io.DataInputStream is)
|
public boolean | isReachable()
|
public byte[] | readTransfer(DHTTransportProgressListener listener, DHTTransportContact target, byte[] handler_key, byte[] key, long timeout)
|
public void | registerTransferHandler(byte[] handler_key, DHTTransportTransferHandler handler)
|
public void | removeListener(DHTTransportListener l)
|
public void | setPort(int port)
|
public void | setRequestHandler(DHTTransportRequestHandler receiver)Set the handler for incoming requests
|
public boolean | supportsStorage()
|
public byte[] | writeReadTransfer(DHTTransportProgressListener listener, DHTTransportContact target, byte[] handler_key, byte[] data, long timeout)
|
public void | writeTransfer(DHTTransportProgressListener listener, DHTTransportContact target, byte[] handler_key, byte[] key, byte[] data, long timeout)
|