Package com.biglybt.core.networkmanager
Interface TransportBase
-
- All Known Subinterfaces:
Transport
- All Known Implementing Classes:
LightweightTCPTransport
,NetworkConnectionImpl.bogusTransport
,PeerForeignNetworkConnection.tp
,TCPTransportImpl
,TransportImpl
,UDPTransport
public interface TransportBase
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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()
-
-
-
Method Detail
-
isReadyForWrite
boolean isReadyForWrite(EventWaiter waiter)
Is the transport ready to write, i.e. will a write request result in >0 bytes written.- Returns:
- true if the transport is write ready, false if not yet ready
-
isReadyForRead
long isReadyForRead(EventWaiter waiter)
Is the transport ready to read, i.e. will a read request result in >0 bytes read.- Returns:
- 0 if the transport is read ready, ms since last ready or created if never ready
-
isTCP
boolean isTCP()
-
getDescription
java.lang.String getDescription()
Get a textual description for this transport.- Returns:
- description
-
-