|
RuneHive-Game
|
The class that handles a connection through the login protocol. More...
Classes | |
| enum | State |
Protected Member Functions | |
| void | decode (ChannelHandlerContext ctx, ByteBuf in, List< Object > out) throws Exception |
Private Member Functions | |
| void | decodeConnectionType (ChannelHandlerContext ctx, ByteBuf in) throws Exception |
| void | decodeHandshake (ChannelHandlerContext ctx, ByteBuf in) |
| void | decodePayload (ChannelHandlerContext ctx, ByteBuf in, List< Object > out) |
| void | sendResponseCode (ChannelHandlerContext ctx, LoginResponse response) |
Private Attributes | |
| State | state = State.HANDSHAKE |
Static Private Attributes | |
| static final Logger | logger = LogManager.getLogger(LoginDecoder.class) |
| static final int | LOGIN_BLOCK_HEADER_SIZE = 38 |
| static final int | LOGIN_HANDSHAKE = 14 |
| static final int | MAGIC_NUMBER = 255 |
| static final int | NEW_CONNECTION_OPCODE = 16 |
| static final ThreadLocal< Random > | RANDOM = ThreadLocal.withInitial(SecureRandom::new) |
| static final int | RECONNECTION_OPCODE = 18 |
The class that handles a connection through the login protocol.
Definition at line 26 of file LoginDecoder.java.
|
protected |
Definition at line 41 of file LoginDecoder.java.
References com.runehive.net.codec.login.LoginDecoder.State.CONNECTION_TYPE, decodeConnectionType(), decodeHandshake(), decodePayload(), com.runehive.net.codec.login.LoginDecoder.State.PAYLOAD, and state.
|
private |
Definition at line 86 of file LoginDecoder.java.
References com.runehive.net.codec.login.LoginResponse.LOGIN_SERVER_REJECTED_SESSION, NEW_CONNECTION_OPCODE, RECONNECTION_OPCODE, and sendResponseCode().
Referenced by decode().
|
private |
Definition at line 61 of file LoginDecoder.java.
References LOGIN_HANDSHAKE, com.runehive.net.codec.login.LoginResponse.LOGIN_SERVER_REJECTED_SESSION, RANDOM, sendResponseCode(), and com.runehive.Config.SESSION_KEY.
Referenced by decode().
|
private |
Definition at line 98 of file LoginDecoder.java.
References com.runehive.Config.CLIENT_VERSION, com.runehive.net.codec.login.LoginResponse.GAME_UPDATED, logger, LOGIN_BLOCK_HEADER_SIZE, com.runehive.net.codec.login.LoginResponse.LOGIN_SERVER_REJECTED_SESSION, MAGIC_NUMBER, com.runehive.Config.RSA_EXPONENT, com.runehive.Config.RSA_MODULUS, and sendResponseCode().
Referenced by decode().
|
private |
Definition at line 190 of file LoginDecoder.java.
References com.runehive.net.codec.login.LoginResponse.getOpcode(), com.runehive.net.codec.login.LoginDecoder.State.IGNORE, logger, com.runehive.net.codec.login.LoginResponse.LOGIN_SERVER_REJECTED_SESSION, and state.
Referenced by decodeConnectionType(), decodeHandshake(), and decodePayload().
|
staticprivate |
Definition at line 28 of file LoginDecoder.java.
Referenced by decodePayload(), and sendResponseCode().
|
staticprivate |
Definition at line 34 of file LoginDecoder.java.
Referenced by decodePayload().
|
staticprivate |
Definition at line 30 of file LoginDecoder.java.
Referenced by decodeHandshake().
|
staticprivate |
Definition at line 33 of file LoginDecoder.java.
Referenced by decodePayload().
|
staticprivate |
Definition at line 31 of file LoginDecoder.java.
Referenced by decodeConnectionType().
|
staticprivate |
Definition at line 36 of file LoginDecoder.java.
Referenced by decodeHandshake().
|
staticprivate |
Definition at line 32 of file LoginDecoder.java.
Referenced by decodeConnectionType().
|
private |
Definition at line 38 of file LoginDecoder.java.
Referenced by decode(), and sendResponseCode().