Methods Summary |
---|
public void | addListener(PEPeerListener listener)Add peer listener.
|
public void | addRateLimiter(com.aelitis.azureus.core.networkmanager.LimitedRateGroup limiter, boolean upload)
|
public void | clearRequestHint()
|
public com.aelitis.azureus.core.peermanager.piecepicker.util.BitFlags | getAvailable()
|
public java.lang.String | getClient()
|
public java.lang.String | getClientNameFromExtensionHandshake()
|
public java.lang.String | getClientNameFromPeerID()
|
public int | getConsecutiveNoRequestCount()
|
public java.lang.Object | getData(java.lang.String key)To retreive arbitrary objects against a peer.
|
public int | getDownloadRateLimitBytesPerSecond()
|
public java.lang.String | getEncryption()Returns name of encryption used by the peer
|
public byte[] | getHandshakeReservedBytes()
|
public java.lang.String | getIPHostName()Gets the host name for the IP, if possible, IP as string otherwise
|
public byte[] | getId()
|
public int | getIncomingRequestCount()
|
public int[] | getIncomingRequestedPieceNumbers()get a list of piece numbers the peer has requested
|
public java.lang.String | getIp()
|
public int | getLastPiece()
|
public PEPeerManager | getManager()
|
public int | getMessagingMode()
|
public int | getOutboundDataQueueSize()amount of data queued for delivery to peer
|
public int | getOutgoingRequestCount()
|
public int[] | getOutgoingRequestedPieceNumbers()get a list of piece numbers the we have requested from peer
|
public java.lang.String | getPeerSource()
|
public int | getPeerState()
|
public int | getPercentDoneInThousandNotation()Get the peer's torrent completion percentage in thousand-notation,
i.e. 53.7% is returned as the value 0537.
|
public int | getPercentDoneOfCurrentIncomingRequest()
|
public int | getPercentDoneOfCurrentOutgoingRequest()
|
public org.gudy.azureus2.plugins.network.Connection | getPluginConnection()Get the connection that backs this peer.
|
public int | getPort()Get the peer's local TCP connection port.
|
public int[] | getRequestHint()Get current request hint for a given piece for this peer.
|
public int | getReservedPieceNumber()Get the reserved piece for piece picking by this peer
|
public long | getSnubbedTime()
|
public PEPeerStats | getStats()
|
public com.aelitis.azureus.core.peermanager.messaging.Message[] | getSupportedMessages()Get the list of messages that this peer and us both understand.
|
public int | getTCPListenPort()Get the TCP port this peer is listening for incoming connections on.
|
public long | getTimeSinceConnectionEstablished()Get the time since this connection was first established.
NOTE: This method will always return 0 at any time before
the underlying transport is fully connected, i.e. before
handshaking begins.
|
public int | getUDPListenPort()Get the UDP port this peer is listening for incoming connections on.
|
public int | getUDPNonDataListenPort()Get the UDP port this peer is listening on for non-data connections
|
public int | getUniqueAnnounce()
|
public int | getUploadHint()
|
public int | getUploadRateLimitBytesPerSecond()
|
public boolean | hasReceivedBitField()
|
public boolean | isChokedByMe()Am I choking the peer.
|
public boolean | isChokingMe()Is the peer choking me.
|
public boolean | isDownloadPossible()checks several factors within the object so the caller wouldn't need to
for convienience and speed.
|
public boolean | isIncoming()
|
public boolean | isInterested()Is the peer Interested in me.
|
public boolean | isInteresting()Am I Interested in the peer.
|
public boolean | isLANLocal()
|
public boolean | isOptimisticUnchoke()
|
public boolean | isPieceAvailable(int pieceNumber)
|
public boolean | isSeed()
|
public boolean | isSnubbed()
|
public void | removeListener(PEPeerListener listener)Remove peer listener.
|
public void | removeRateLimiter(com.aelitis.azureus.core.networkmanager.LimitedRateGroup limiter, boolean upload)
|
public boolean | sendRequestHint(int piece_number, int offset, int length, int life)Send a request hint to the peer.
|
public void | setConsecutiveNoRequestCount(int num)
|
public void | setData(java.lang.String key, java.lang.Object value)To store arbitrary objects against a peer.
|
public void | setDownloadRateLimitBytesPerSecond(int bytes)
|
public void | setHaveAggregationEnabled(boolean enabled)
|
public void | setLastPiece(int i)
|
public void | setOptimisticUnchoke(boolean is_optimistic)
|
public void | setReservedPieceNumber(int pieceNumber)Sets the reserved piece for piece picking by this peer
|
public void | setSnubbed(boolean b)
|
public void | setUniqueAnnounce(int uniquePieceNumber)
|
public void | setUploadHint(int timeToSpread)
|
public void | setUploadRateLimitBytesPerSecond(int bytes)
|
public boolean | supportsMessaging()Whether or not this peer supports the advanced messaging API.
|
public boolean | transferAvailable()
|