Updated API

This commit is contained in:
Collin Smith 2020-06-24 15:27:58 -07:00
parent 271359cbca
commit b832c89dcc
2 changed files with 1 additions and 6 deletions

View File

@ -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;

View File

@ -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();