mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-22 02:07:26 +07:00
Renamed sentPacket to sendConnectionPacket
This commit is contained in:
parent
b2bf16bb1e
commit
278760f913
@ -69,16 +69,15 @@ public class TestClient extends ApplicationAdapter implements PacketProcessor {
|
||||
});
|
||||
|
||||
ChannelFuture f = b.connect("localhost", Main.PORT).sync();
|
||||
sendPacket();
|
||||
Thread.currentThread().sleep(1);
|
||||
sendPacket();
|
||||
sendConnectionPacket();
|
||||
sendConnectionPacket();
|
||||
} catch (Throwable t) {
|
||||
Gdx.app.error(TAG, t.getMessage(), t);
|
||||
Gdx.app.exit();
|
||||
}
|
||||
}
|
||||
|
||||
private void sendPacket() {
|
||||
private void sendConnectionPacket() {
|
||||
InetSocketAddress remoteAddress = (InetSocketAddress) endpoint.channel().remoteAddress();
|
||||
Gdx.app.log(TAG, "Sending Connection packet to " + remoteAddress.getHostString() + ":" + remoteAddress.getPort());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user