Package com.biglybt.pifimpl.local.peers
Class PeerForeignNetworkConnection.tp
java.lang.Object
com.biglybt.pifimpl.local.peers.PeerForeignNetworkConnection.tp
- All Implemented Interfaces:
TransportBase
- Enclosing class:
- PeerForeignNetworkConnection
-
Field Summary
Fields -
Constructor Summary
Constructors -
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()
-
Field Details
-
last_ready_for_read
private long last_ready_for_read
-
-
Constructor Details
-
tp
protected tp()
-
-
Method Details
-
isReadyForWrite
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 interfaceTransportBase
- Returns:
- true if the transport is write ready, false if not yet ready
-
isReadyForRead
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 interfaceTransportBase
- 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 interfaceTransportBase
-
getDescription
Description copied from interface:TransportBase
Get a textual description for this transport.- Specified by:
getDescription
in interfaceTransportBase
- Returns:
- description
-