com.aelitis.azureus.core.networkmanager.impl.tcp
Class ProtocolEndpointTCP

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.impl.tcp.ProtocolEndpointTCP
All Implemented Interfaces:
ProtocolEndpoint

public class ProtocolEndpointTCP
extends Object
implements ProtocolEndpoint


Field Summary
 
Fields inherited from interface com.aelitis.azureus.core.networkmanager.ProtocolEndpoint
CONNECT_PRIORITY_HIGH, CONNECT_PRIORITY_HIGHEST, CONNECT_PRIORITY_LOW, CONNECT_PRIORITY_MEDIUM, CONNECT_PRIORITY_SUPER_HIGHEST, PROTOCOL_TCP, PROTOCOL_UDP, PROTOCOL_UTP
 
Method Summary
 Transport connectLightWeight(SocketChannel sc)
           
 Transport connectOutbound(boolean connect_with_crypto, boolean allow_fallback, byte[][] shared_secrets, ByteBuffer initial_data, int priority, Transport.ConnectListener listener)
           
 InetSocketAddress getAddress()
           
 InetSocketAddress getAdjustedAddress(boolean to_lan)
           
 ConnectionEndpoint getConnectionEndpoint()
           
 String getDescription()
           
 int getType()
           
static void register()
           
 void setConnectionEndpoint(ConnectionEndpoint _ce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

register

public static void register()

setConnectionEndpoint

public void setConnectionEndpoint(ConnectionEndpoint _ce)
Specified by:
setConnectionEndpoint in interface ProtocolEndpoint

getType

public int getType()
Specified by:
getType in interface ProtocolEndpoint

getConnectionEndpoint

public ConnectionEndpoint getConnectionEndpoint()
Specified by:
getConnectionEndpoint in interface ProtocolEndpoint

getAddress

public InetSocketAddress getAddress()
Specified by:
getAddress in interface ProtocolEndpoint

getAdjustedAddress

public InetSocketAddress getAdjustedAddress(boolean to_lan)
Specified by:
getAdjustedAddress in interface ProtocolEndpoint

connectOutbound

public Transport connectOutbound(boolean connect_with_crypto,
                                 boolean allow_fallback,
                                 byte[][] shared_secrets,
                                 ByteBuffer initial_data,
                                 int priority,
                                 Transport.ConnectListener listener)
Specified by:
connectOutbound in interface ProtocolEndpoint

connectLightWeight

public Transport connectLightWeight(SocketChannel sc)

getDescription

public String getDescription()
Specified by:
getDescription in interface ProtocolEndpoint