Package com.biglybt.core.networkmanager
Interface TransportBase
- All Known Subinterfaces:
Transport
- All Known Implementing Classes:
NetworkConnectionImpl.bogusTransport
,PeerForeignNetworkConnection.tp
,TCPTransportImpl
,TransportImpl
,UDPTransport
public interface TransportBase
-
Method Summary
Modifier and TypeMethodDescriptionGet 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 Details
-
isReadyForWrite
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
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
String getDescription()Get a textual description for this transport.- Returns:
- description
-