Methods Summary |
---|
public void | close(java.lang.String reason)Close the transport connection.
|
public void | connectOutbound(java.nio.ByteBuffer initial_data, com.aelitis.azureus.core.networkmanager.Transport$ConnectListener listener)Kick off an outbound connection
|
public void | connectedInbound()Indicate that inbound connection is complete
|
public java.lang.String | getEncryption()Return a textual description of the encryption for this transport
|
public int | getMssSize()
|
public TransportEndpoint | getTransportEndpoint()Get the socket channel used by the transport.
|
public int | getTransportMode()Get the transport's speed mode.
|
public boolean | isEncrypted()
|
public long | read(java.nio.ByteBuffer[] buffers, int array_offset, int length)Read data from the transport into the given buffers.
NOTE: Works like ScatteringByteChannel.
|
public void | setAlreadyRead(java.nio.ByteBuffer bytes_already_read)Inject the given already-read data back into the read stream.
|
public void | setReadyForRead()fake a wakeup so that a read cycle is attempted
|
public void | setTrace(boolean on)
|
public void | setTransportMode(int mode)Set the transport to the given speed mode.
|
public long | write(java.nio.ByteBuffer[] buffers, int array_offset, int length)Write data to the transport from the given buffers.
NOTE: Works like GatheringByteChannel.
|