FileDocCategorySizeDatePackage
Transport.javaAPI DocAzureus 3.0.3.42167Thu Feb 09 19:42:52 GMT 2006org.gudy.azureus2.plugins.network

Transport

public interface Transport
Represents an underlying network transport.

Fields Summary
Constructors Summary
Methods Summary
public longread(java.nio.ByteBuffer[] buffers, int array_offset, int length)
Read data from the transport into the given buffers. NOTE: Works like ScatteringByteChannel.

param
buffers into which bytes are to be placed
param
array_offset offset within the buffer array of the first buffer into which bytes are to be placed
param
length maximum number of buffers to be accessed
return
number of bytes read
throws
IOException on read error

public longwrite(java.nio.ByteBuffer[] buffers, int array_offset, int length)
Write data to the transport from the given buffers. NOTE: Works like GatheringByteChannel.

param
buffers from which bytes are to be retrieved
param
array_offset offset within the buffer array of the first buffer from which bytes are to be retrieved
param
length maximum number of buffers to be accessed
return
number of bytes written
throws
IOException on write error