Minor cleanup
This commit is contained in:
@@ -134,14 +134,6 @@ public class MapleClient extends ChannelInboundHandlerAdapter {
|
|||||||
CHANNEL
|
CHANNEL
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateLastPacket() {
|
|
||||||
lastPacket = System.currentTimeMillis();
|
|
||||||
}
|
|
||||||
|
|
||||||
public long getLastPacket() {
|
|
||||||
return lastPacket;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MapleClient(Type type, PacketProcessor packetProcessor, int world, int channel) {
|
public MapleClient(Type type, PacketProcessor packetProcessor, int world, int channel) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.packetProcessor = packetProcessor;
|
this.packetProcessor = packetProcessor;
|
||||||
@@ -252,6 +244,14 @@ public class MapleClient extends ChannelInboundHandlerAdapter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateLastPacket() {
|
||||||
|
lastPacket = System.currentTimeMillis();
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getLastPacket() {
|
||||||
|
return lastPacket;
|
||||||
|
}
|
||||||
|
|
||||||
public void closeSession() {
|
public void closeSession() {
|
||||||
ioChannel.close();
|
ioChannel.close();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class ChannelServerInitializer extends ServerChannelInitializer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initChannel(SocketChannel socketChannel) {
|
public void initChannel(SocketChannel socketChannel) {
|
||||||
final String clientIp = socketChannel.remoteAddress().getHostName();
|
final String clientIp = socketChannel.remoteAddress().getHostString();
|
||||||
log.debug("Client connecting to world {}, channel {} from {}", world, channel, clientIp);
|
log.debug("Client connecting to world {}, channel {} from {}", world, channel, clientIp);
|
||||||
|
|
||||||
PacketProcessor packetProcessor = PacketProcessor.getChannelServerProcessor(world, channel);
|
PacketProcessor packetProcessor = PacketProcessor.getChannelServerProcessor(world, channel);
|
||||||
|
|||||||
Reference in New Issue
Block a user