com.aelitis.azureus.core.networkmanager.impl.udp
Class UDPConnection

java.lang.Object
  extended by com.aelitis.azureus.core.networkmanager.impl.udp.UDPConnection

public class UDPConnection
extends Object


Constructor Summary
protected UDPConnection(UDPConnectionSet _set, int _id)
           
protected UDPConnection(UDPConnectionSet _set, int _id, UDPTransportHelper _transport)
           
 
Method Summary
protected  boolean canRead()
           
protected  boolean canWrite()
           
protected  void close(String reason)
           
protected  void closeSupport(String reason)
           
protected  void failed(Throwable reason)
           
protected  void failedSupport(Throwable reason)
           
protected  int getID()
           
protected  UDPSelector getSelector()
           
protected  UDPTransportHelper getTransport()
           
protected  boolean isConnected()
           
 boolean isIncoming()
           
protected  void poll()
           
protected  int read(ByteBuffer buffer)
           
protected  void receive(ByteBuffer data)
           
protected  void sent()
           
protected  void setID(int _id)
           
protected  void setSecret(byte[] session_secret)
           
protected  void setTransport(UDPTransportHelper _transport)
           
protected  int write(ByteBuffer[] buffers, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDPConnection

protected UDPConnection(UDPConnectionSet _set,
                        int _id,
                        UDPTransportHelper _transport)

UDPConnection

protected UDPConnection(UDPConnectionSet _set,
                        int _id)
Method Detail

getSelector

protected UDPSelector getSelector()

getID

protected int getID()

setID

protected void setID(int _id)

isIncoming

public boolean isIncoming()

setSecret

protected void setSecret(byte[] session_secret)

setTransport

protected void setTransport(UDPTransportHelper _transport)

getTransport

protected UDPTransportHelper getTransport()

receive

protected void receive(ByteBuffer data)
                throws IOException
Throws:
IOException

sent

protected void sent()

canRead

protected boolean canRead()

canWrite

protected boolean canWrite()

write

protected int write(ByteBuffer[] buffers,
                    int offset,
                    int length)
             throws IOException
Throws:
IOException

read

protected int read(ByteBuffer buffer)
            throws IOException
Throws:
IOException

close

protected void close(String reason)

failed

protected void failed(Throwable reason)

closeSupport

protected void closeSupport(String reason)

failedSupport

protected void failedSupport(Throwable reason)

isConnected

protected boolean isConnected()

poll

protected void poll()