Methods Summary |
---|
public void | close(java.lang.String reason)
closed = true;
readyForRead( false );
readyForWrite( false );
TransportHelperFilter filter = getFilter();
if ( filter != null ){
filter.getHelper().close( reason );
setFilter( null );
}
|
public void | connectOutbound(java.nio.ByteBuffer initial_data, ConnectListener listener)
if ( !UDPNetworkManager.UDP_OUTGOING_ENABLED ){
listener.connectFailure( new Throwable( "Outbound UDP connections disabled" ));
return;
}
if ( closed ){
listener.connectFailure( new Throwable( "Connection already closed" ));
return;
}
if( getFilter() != null ){
listener.connectFailure( new Throwable( "Already connected" ));
return;
}
UDPConnectionManager con_man = UDPNetworkManager.getSingleton().getConnectionManager();
con_man.connectOutbound( this, endpoint.getAddress(), shared_secrets, initial_data, listener);
|
public java.lang.String | getDescription()
return( endpoint.getAddress().toString());
|
public int | getMssSize()
return( UDPNetworkManager.getUdpMssSize());
|
public com.aelitis.azureus.core.networkmanager.TransportEndpoint | getTransportEndpoint()
return( new TransportEndpointUDP( endpoint ));
|
public int | getTransportMode()
return( transport_mode );
|
public boolean | isClosed()
return( closed );
|
public boolean | isTCP()
return( false );
|
public void | setTransportMode(int mode)
transport_mode = mode;
|