mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-19 16:57:20 +07:00
Updated API
This commit is contained in:
parent
271359cbca
commit
b832c89dcc
@ -6,7 +6,6 @@ import io.netty.channel.Channel;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.channel.socket.DatagramChannel;
|
||||
import io.netty.channel.socket.DatagramPacket;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.nio.ByteBuffer;
|
||||
import org.apache.commons.lang3.Validate;
|
||||
|
||||
@ -48,10 +47,6 @@ public class ReliableEndpoint implements PacketSender<QoS>, MessageChannel.Packe
|
||||
}
|
||||
}
|
||||
|
||||
public InetSocketAddress remoteAddress() {
|
||||
return channel.remoteAddress();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Channel channel() {
|
||||
return channel;
|
||||
|
@ -61,7 +61,7 @@ public class TestClient extends ApplicationAdapter implements PacketProcessor {
|
||||
}
|
||||
|
||||
void init() {
|
||||
InetSocketAddress remoteAddress = endpoint.remoteAddress();
|
||||
InetSocketAddress remoteAddress = (InetSocketAddress) endpoint.channel().remoteAddress();
|
||||
Gdx.app.log(TAG, "Sending Connection packet to " + remoteAddress.getHostString() + ":" + remoteAddress.getPort());
|
||||
|
||||
FlatBufferBuilder builder = new FlatBufferBuilder();
|
||||
|
Loading…
Reference in New Issue
Block a user