1package com.runehive.net.session;
3import com.runehive.Config;
4import io.netty.channel.Channel;
5import io.netty.channel.ChannelFuture;
7import java.net.InetSocketAddress;
24 protected final String
host;
34 this.host = ((InetSocketAddress)
channel.remoteAddress()).getAddress().getHostAddress();
50 protected void onClose(ChannelFuture future) {
The class that contains setting-related constants for the server.
static final AttributeKey< String > SOURCE_ADDRESS
final void close()
The method to close this session.
String getHost()
Gets the users host address.
final Channel channel
The channel attached to this session.
Session(Channel channel)
Creates a new Session.
Channel getChannel()
Gets the underlying Channel for this Session.
void handleClientPacket(Object o)
The method that is called when the client sends packets to the server.
final String host
The users host address.
void onClose(ChannelFuture future)
The method called after a session has been closed.