com.aelitis.azureus.core.networkmanager.impl.udp
Class UDPTransport
java.lang.Object
com.aelitis.azureus.core.networkmanager.impl.TransportImpl
com.aelitis.azureus.core.networkmanager.impl.udp.UDPTransport
- All Implemented Interfaces:
- Transport, TransportBase
public class UDPTransport
- extends TransportImpl
Methods inherited from class com.aelitis.azureus.core.networkmanager.impl.TransportImpl |
bindConnection, connectedInbound, connectedOutbound, getEncryption, getFilter, isEncrypted, isReadyForRead, isReadyForWrite, read, readFailed, readyForRead, readyForWrite, setAlreadyRead, setFilter, setReadyForRead, setTrace, unbindConnection, write, writeFailed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDPTransport
protected UDPTransport(ProtocolEndpointUDP _endpoint,
byte[][] _shared_secrets)
UDPTransport
protected UDPTransport(ProtocolEndpointUDP _endpoint,
TransportHelperFilter _filter)
isTCP
public boolean isTCP()
isSOCKS
public boolean isSOCKS()
- Specified by:
isSOCKS
in interface Transport
- Overrides:
isSOCKS
in class TransportImpl
getProtocol
public java.lang.String getProtocol()
- Specified by:
getProtocol
in interface Transport
- Overrides:
getProtocol
in class TransportImpl
getTransportEndpoint
public TransportEndpoint getTransportEndpoint()
- Description copied from interface:
Transport
- Get the socket channel used by the transport.
- Returns:
- the socket channel
getTransportStartpoint
public TransportStartpoint getTransportStartpoint()
- Specified by:
getTransportStartpoint
in interface Transport
- Overrides:
getTransportStartpoint
in class TransportImpl
getMssSize
public int getMssSize()
getDescription
public java.lang.String getDescription()
- Description copied from interface:
TransportBase
- Get a textual description for this transport.
- Returns:
- description
setTransportMode
public void setTransportMode(int mode)
- Description copied from interface:
Transport
- Set the transport to the given speed mode.
- Parameters:
mode
- to change to
getTransportMode
public int getTransportMode()
- Description copied from interface:
Transport
- Get the transport's speed mode.
- Returns:
- current mode
connectOutbound
public void connectOutbound(java.nio.ByteBuffer initial_data,
Transport.ConnectListener listener,
int priority)
- Description copied from interface:
Transport
- Kick off an outbound connection
close
public void close(java.lang.String reason)
- Description copied from interface:
Transport
- Close the transport connection.
isClosed
public boolean isClosed()