com.aelitis.azureus.core.proxy
Interface AEProxyConnection

All Known Implementing Classes:
AEProxyConnectionImpl

public interface AEProxyConnection

Author:
parg

Method Summary
 void addListener(AEProxyConnectionListener l)
           
 void cancelConnectSelect(java.nio.channels.SocketChannel channel)
           
 void cancelReadSelect(java.nio.channels.SocketChannel channel)
           
 void cancelWriteSelect(java.nio.channels.SocketChannel channel)
           
 void close()
          close the connection
 void failed(java.lang.Throwable cause)
          indicate that the connection has failed
 java.lang.String getName()
           
 java.nio.channels.SocketChannel getSourceChannel()
          returns the non-blocking channel associated with the initiator of this proxy connection
 boolean isClosed()
           
 void removeListener(AEProxyConnectionListener l)
           
 void requestConnectSelect(java.nio.channels.SocketChannel channel)
           
 void requestReadSelect(java.nio.channels.SocketChannel channel)
           
 void requestWriteSelect(java.nio.channels.SocketChannel channel)
           
 void setConnected()
          marks the transition between connecting and connected
 void setConnectState(AEProxyState state)
           
 void setReadState(AEProxyState state)
           
 void setTimeStamp()
          marks the last time that something happened on the connection for read timeout purposes
 void setWriteState(AEProxyState state)
           
 

Method Detail

getName

java.lang.String getName()

getSourceChannel

java.nio.channels.SocketChannel getSourceChannel()
returns the non-blocking channel associated with the initiator of this proxy connection

Returns:

setReadState

void setReadState(AEProxyState state)

setWriteState

void setWriteState(AEProxyState state)

setConnectState

void setConnectState(AEProxyState state)

requestReadSelect

void requestReadSelect(java.nio.channels.SocketChannel channel)

cancelReadSelect

void cancelReadSelect(java.nio.channels.SocketChannel channel)

requestWriteSelect

void requestWriteSelect(java.nio.channels.SocketChannel channel)

cancelWriteSelect

void cancelWriteSelect(java.nio.channels.SocketChannel channel)

requestConnectSelect

void requestConnectSelect(java.nio.channels.SocketChannel channel)

cancelConnectSelect

void cancelConnectSelect(java.nio.channels.SocketChannel channel)

setConnected

void setConnected()
marks the transition between connecting and connected


setTimeStamp

void setTimeStamp()
marks the last time that something happened on the connection for read timeout purposes


failed

void failed(java.lang.Throwable cause)
indicate that the connection has failed

Parameters:
cause -

close

void close()
close the connection


isClosed

boolean isClosed()

addListener

void addListener(AEProxyConnectionListener l)

removeListener

void removeListener(AEProxyConnectionListener l)