public interface ServerDiscoveryHandler
| Modifier and Type | Field and Description |
|---|---|
static ServerDiscoveryHandler |
DEFAULT
This implementation of
ServerDiscoveryHandler is responsible for
providing the Server with it's default behavior. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onDiscoverHost(com.esotericsoftware.kryonet.UdpConnection udp,
InetSocketAddress fromAddress,
Serialization serialization)
Called when the
Server receives a FrameworkMessage.DiscoverHost packet. |
static final ServerDiscoveryHandler DEFAULT
ServerDiscoveryHandler is responsible for
providing the Server with it's default behavior.boolean onDiscoverHost(com.esotericsoftware.kryonet.UdpConnection udp,
InetSocketAddress fromAddress,
Serialization serialization)
throws IOException
Server receives a FrameworkMessage.DiscoverHost packet.udp - the UdpConnectionfromAddress - InetSocketAddress the FrameworkMessage.DiscoverHost came fromserialization - the Server's Serialization instancefromAddress, false
otherwiseIOException - from the use of
DatagramChannel.send(ByteBuffer, java.net.SocketAddress)Copyright © 2014. All Rights Reserved.