com.aelitis.azureus.core.networkmanager.impl.udp
Class UDPConnection
java.lang.Object
com.aelitis.azureus.core.networkmanager.impl.udp.UDPConnection
public class UDPConnection
- extends 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(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()