FileDocCategorySizeDatePackage
TransportImpl.javaAPI DocAzureus 3.0.3.42284Fri Jun 16 10:25:16 BST 2006org.gudy.azureus2.pluginsimpl.local.network

TransportImpl

public class TransportImpl extends Object implements org.gudy.azureus2.plugins.network.Transport

Fields Summary
private com.aelitis.azureus.core.networkmanager.Transport
core_transport
private com.aelitis.azureus.core.networkmanager.NetworkConnection
core_network
Constructors Summary
public TransportImpl(com.aelitis.azureus.core.networkmanager.NetworkConnection core_network)

    this.core_network = core_network;
  
public TransportImpl(com.aelitis.azureus.core.networkmanager.Transport core_transport)

	    this.core_transport = core_transport;
  
Methods Summary
public longread(java.nio.ByteBuffer[] buffers, int array_offset, int length)

	if ( core_transport == null ){
		core_transport = core_network.getTransport();
		if ( core_transport == null ){
			throw( new IOException( "Not connected" ));
		}
	}
    return core_transport.read( buffers, array_offset, length );
  
public longwrite(java.nio.ByteBuffer[] buffers, int array_offset, int length)

	if ( core_transport == null ){
		core_transport = core_network.getTransport();
		if ( core_transport == null ){
			throw( new IOException( "Not connected" ));
		}
	}
    return core_transport.write( buffers, array_offset, length );