atavism.server.network
Class ClientUDPConnection
java.lang.Object
atavism.server.network.ClientConnection
atavism.server.network.ClientUDPConnection
public class ClientUDPConnection
- extends ClientConnection
Fields inherited from class atavism.server.network.ClientConnection |
aggregatedReceives, aggregatedSends, connectionTypeRDP, connectionTypeTCP, connectionTypeUDP, lock, logMessageContents, packetAggregator, receivedMessagesAggregated, sentMessagesAggregated, unaggregatedReceives, unaggregatedSends |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
opcodeAggregatedVoicePacket
public static byte opcodeAggregatedVoicePacket
messageCallback
protected ClientConnection.MessageCallback messageCallback
channelMap
protected static java.util.Map<java.lang.Integer,java.nio.channels.DatagramChannel> channelMap
remoteAddr
protected java.lang.String remoteAddr
remotePort
protected java.lang.Integer remotePort
socket
protected java.nio.channels.DatagramChannel socket
ClientUDPConnection
public ClientUDPConnection(java.nio.channels.DatagramChannel datagramChannel)
ClientUDPConnection
public ClientUDPConnection(java.nio.channels.DatagramChannel dc,
ClientConnection.MessageCallback messageCallback)
initializeFromDatagramChannel
protected void initializeFromDatagramChannel(java.nio.channels.DatagramChannel datagramChannel)
IPAndPort
public java.lang.String IPAndPort()
- Specified by:
IPAndPort
in class ClientConnection
registerMessageCallback
public void registerMessageCallback(ClientConnection.MessageCallback messageCallback)
- Specified by:
registerMessageCallback
in class ClientConnection
send
public void send(AOByteBuffer buf)
- Specified by:
send
in class ClientConnection
sendInternal
public boolean sendInternal(AOByteBuffer buf)
- Specified by:
sendInternal
in class ClientConnection
sendIfPossible
public boolean sendIfPossible(AOByteBuffer buf)
- Specified by:
sendIfPossible
in class ClientConnection
sendMultibuf
public int sendMultibuf(java.util.List<AOByteBuffer> subMessages,
int currentSize)
- Specified by:
sendMultibuf
in class ClientConnection
open
public void open(java.lang.String hostname,
int remotePort)
- Specified by:
open
in class ClientConnection
connectionReset
public void connectionReset()
- Specified by:
connectionReset
in class ClientConnection
close
public void close()
- Specified by:
close
in class ClientConnection
isOpen
public boolean isOpen()
- Specified by:
isOpen
in class ClientConnection
canSend
public boolean canSend()
- Specified by:
canSend
in class ClientConnection
canSendInternal
public boolean canSendInternal()
- Specified by:
canSendInternal
in class ClientConnection
connectionKind
public int connectionKind()
- Specified by:
connectionKind
in class ClientConnection