com.aelitis.azureus.core.networkmanager.impl.udp
Class UDPTransport

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.impl.TransportImpl
      extended by com.aelitis.azureus.core.networkmanager.impl.udp.UDPTransport
All Implemented Interfaces:
Transport, TransportBase

public class UDPTransport
extends TransportImpl


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.aelitis.azureus.core.networkmanager.Transport
Transport.ConnectListener
 
Field Summary
 
Fields inherited from interface com.aelitis.azureus.core.networkmanager.Transport
TRANSPORT_MODE_FAST, TRANSPORT_MODE_NORMAL, TRANSPORT_MODE_TURBO
 
Constructor Summary
protected UDPTransport(ProtocolEndpointUDP _endpoint, byte[][] _shared_secrets)
           
protected UDPTransport(ProtocolEndpointUDP _endpoint, TransportHelperFilter _filter)
           
 
Method Summary
 void close(String reason)
          Close the transport connection.
 void connectOutbound(ByteBuffer initial_data, Transport.ConnectListener listener, int priority)
          Kick off an outbound connection
 String getDescription()
          Get a textual description for this transport.
 int getMssSize()
           
 String getProtocol()
           
 TransportEndpoint getTransportEndpoint()
          Get the socket channel used by the transport.
 int getTransportMode()
          Get the transport's speed mode.
 TransportStartpoint getTransportStartpoint()
           
 boolean isClosed()
           
 boolean isSOCKS()
           
 boolean isTCP()
           
 void setTransportMode(int mode)
          Set the transport to the given speed mode.
 
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
 

Constructor Detail

UDPTransport

protected UDPTransport(ProtocolEndpointUDP _endpoint,
                       byte[][] _shared_secrets)

UDPTransport

protected UDPTransport(ProtocolEndpointUDP _endpoint,
                       TransportHelperFilter _filter)
Method Detail

isTCP

public boolean isTCP()

isSOCKS

public boolean isSOCKS()
Specified by:
isSOCKS in interface Transport
Overrides:
isSOCKS in class TransportImpl

getProtocol

public 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 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(ByteBuffer initial_data,
                            Transport.ConnectListener listener,
                            int priority)
Description copied from interface: Transport
Kick off an outbound connection


close

public void close(String reason)
Description copied from interface: Transport
Close the transport connection.


isClosed

public boolean isClosed()