1package com.runehive.net;
3import com.runehive.Config;
4import com.runehive.net.codec.login.LoginDecoder;
5import com.runehive.net.codec.login.LoginResponseEncoder;
6import com.runehive.net.session.Session;
7import io.netty.channel.ChannelInitializer;
8import io.netty.channel.ChannelPipeline;
9import io.netty.channel.socket.SocketChannel;
10import io.netty.handler.codec.haproxy.HAProxyMessageDecoder;
11import io.netty.handler.timeout.IdleStateHandler;
22 final ChannelPipeline pipeline = ch.pipeline();
28 pipeline.addLast(
"haproxy",
new HAProxyMessageDecoder());
The class that contains setting-related constants for the server.
static final boolean SUPPORT_HAPROXY
static final int IDLE_TIMEOUT
The number of seconds before a connection becomes idle.
static final AttributeKey< Session > SESSION_KEY
The session key.
A SimpleChannelInboundHandler implementation for re-routing channel-events to its bound Session.
The ChannelInitializer implementation that will setup the games networking pipeline.
void initChannel(SocketChannel ch)
The class that handles a connection through the login protocol.
Represents a session between a user and the server.