org.gudy.azureus2.pluginsimpl.local.peers
Class PeerForeignNetworkConnection.tp

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.peers.PeerForeignNetworkConnection.tp
All Implemented Interfaces:
TransportBase
Enclosing class:
PeerForeignNetworkConnection

protected class PeerForeignNetworkConnection.tp
extends java.lang.Object
implements TransportBase


Constructor Summary
protected PeerForeignNetworkConnection.tp()
           
 
Method Summary
 java.lang.String getDescription()
          Get a textual description for this transport.
 long isReadyForRead(EventWaiter waiter)
          Is the transport ready to read, i.e.
 boolean isReadyForWrite(EventWaiter waiter)
          Is the transport ready to write, i.e.
 boolean isTCP()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerForeignNetworkConnection.tp

protected PeerForeignNetworkConnection.tp()
Method Detail

isReadyForWrite

public boolean isReadyForWrite(EventWaiter waiter)
Description copied from interface: TransportBase
Is the transport ready to write, i.e. will a write request result in >0 bytes written.

Specified by:
isReadyForWrite in interface TransportBase
Returns:
true if the transport is write ready, false if not yet ready

isReadyForRead

public long isReadyForRead(EventWaiter waiter)
Description copied from interface: TransportBase
Is the transport ready to read, i.e. will a read request result in >0 bytes read.

Specified by:
isReadyForRead in interface TransportBase
Returns:
0 if the transport is read ready, ms since last ready or created if never ready

isTCP

public boolean isTCP()
Specified by:
isTCP in interface TransportBase

getDescription

public java.lang.String getDescription()
Description copied from interface: TransportBase
Get a textual description for this transport.

Specified by:
getDescription in interface TransportBase
Returns:
description