com.aelitis.azureus.core.networkmanager.impl.udp
Class UDPConnection
java.lang.Object
com.aelitis.azureus.core.networkmanager.impl.udp.UDPConnection
public class UDPConnection
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDPConnection
protected UDPConnection(UDPConnectionSet _set,
int _id,
UDPTransportHelper _transport)
UDPConnection
protected UDPConnection(UDPConnectionSet _set,
int _id)
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(java.nio.ByteBuffer data)
throws java.io.IOException
- Throws:
java.io.IOException
sent
protected void sent()
canRead
protected boolean canRead()
canWrite
protected boolean canWrite()
write
protected int write(java.nio.ByteBuffer[] buffers,
int offset,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
read
protected int read(java.nio.ByteBuffer buffer)
throws java.io.IOException
- Throws:
java.io.IOException
close
protected void close(java.lang.String reason)
failed
protected void failed(java.lang.Throwable reason)
closeSupport
protected void closeSupport(java.lang.String reason)
failedSupport
protected void failedSupport(java.lang.Throwable reason)
isConnected
protected boolean isConnected()
poll
protected void poll()