|
RuneHive-Game
|
Represents a session between a user and the server. More...
Public Member Functions | |
| final void | close () |
| The method to close this session. | |
| Channel | getChannel () |
Gets the underlying Channel for this Session. | |
| String | getHost () |
| Gets the users host address. | |
| void | handleClientPacket (Object o) |
| The method that is called when the client sends packets to the server. | |
| Session (Channel channel) | |
Creates a new Session. | |
Protected Member Functions | |
| void | onClose (ChannelFuture future) |
| The method called after a session has been closed. | |
Protected Attributes | |
| final Channel | channel |
| The channel attached to this session. | |
| final String | host |
| The users host address. | |
Represents a session between a user and the server.
Definition at line 14 of file Session.java.
| com.runehive.net.session.Session.Session | ( | Channel | channel | ) |
Creates a new Session.
| channel | The channel that is attached to this session. |
Definition at line 32 of file Session.java.
References channel.
| final void com.runehive.net.session.Session.close | ( | ) |
The method to close this session.
Definition at line 40 of file Session.java.
References channel, and onClose().
| Channel com.runehive.net.session.Session.getChannel | ( | ) |
| String com.runehive.net.session.Session.getHost | ( | ) |
Gets the users host address.
Definition at line 76 of file Session.java.
References channel, getChannel(), host, and com.runehive.Config.SOURCE_ADDRESS.
| void com.runehive.net.session.Session.handleClientPacket | ( | Object | o | ) |
The method that is called when the client sends packets to the server.
| o | The vague object packet. |
Reimplemented in com.runehive.net.session.GameSession, and com.runehive.net.session.LoginSession.
Definition at line 60 of file Session.java.
|
protected |
The method called after a session has been closed.
| future | The result of the session being closed. |
Reimplemented in com.runehive.net.session.GameSession.
Definition at line 50 of file Session.java.
Referenced by close().
|
protected |
The channel attached to this session.
Definition at line 19 of file Session.java.
Referenced by close(), com.runehive.net.session.GameSession.GameSession(), getChannel(), getHost(), com.runehive.net.session.LoginSession.handleUserLoginDetails(), com.runehive.net.session.LoginSession.LoginSession(), com.runehive.net.session.GameSession.processServerPacketQueue(), com.runehive.net.session.LoginSession.sendFailedResponse(), and Session().
|
protected |