public class UdpSessionHandler extends SessionHandler
Constructor and Description |
---|
UdpSessionHandler(InetSocketAddress address,
SharedUdpServerSocket socket) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Client |
getClient() |
UdpInitStack |
getInitStack() |
Protocol |
getProtocol() |
boolean |
isOrphan()
Returns whether this session an orphan.
|
void |
onReceive(PacketWithAddress pk) |
void |
send(ByteBuffer buffer) |
void |
tick() |
getAddress, getSocket
public UdpSessionHandler(InetSocketAddress address, SharedUdpServerSocket socket)
public void onReceive(PacketWithAddress pk)
onReceive
in class SessionHandler
public void send(ByteBuffer buffer)
send
in class SessionHandler
public void close()
close
in class SessionHandler
public void tick()
tick
in class SessionHandler
public boolean isOrphan()
SessionHandler
Returns whether this session an orphan.
An orphan session is a session that has not been recognized by any sessions yet.
isOrphan
in class SessionHandler
public UdpInitStack getInitStack()
public Protocol getProtocol()
getProtocol
in class SessionHandler
public Client getClient()
Copyright © 2016. All rights reserved.