RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.net.session.Session Class Reference
Inheritance diagram for com.osroyale.net.session.Session:

Public Member Functions

 Session (Channel channel)
final void close ()
void handleClientPacket (Object o)
Channel getChannel ()
String getHost ()

Protected Member Functions

void onClose (ChannelFuture future)

Protected Attributes

final Channel channel
final String host

Detailed Description

Represents a session between a user and the server.

Author
nshusa

Definition at line 45 of file Session.java.

Constructor & Destructor Documentation

◆ Session()

com.osroyale.net.session.Session.Session ( Channel channel)
inline

Creates a new Session.

Parameters
channelThe channel that is attached to this session.

Definition at line 63 of file Session.java.

Member Function Documentation

◆ close()

final void com.osroyale.net.session.Session.close ( )
inline

The method to close this session.

Definition at line 71 of file Session.java.

◆ getChannel()

Channel com.osroyale.net.session.Session.getChannel ( )
inline

Gets the underlying Channel for this Session.

Returns
The underlying channel.

Definition at line 100 of file Session.java.

◆ getHost()

String com.osroyale.net.session.Session.getHost ( )
inline

Gets the users host address

Definition at line 107 of file Session.java.

◆ handleClientPacket()

void com.osroyale.net.session.Session.handleClientPacket ( Object o)
inline

The method that is called when the client sends packets to the server.

Parameters
oThe vague object packet.

Reimplemented in com.osroyale.net.session.GameSession, and com.osroyale.net.session.LoginSession.

Definition at line 91 of file Session.java.

◆ onClose()

void com.osroyale.net.session.Session.onClose ( ChannelFuture future)
inlineprotected

The method called after a session has been closed.

Parameters
futureThe result of the session being closed.

Reimplemented in com.osroyale.net.session.GameSession.

Definition at line 81 of file Session.java.

Member Data Documentation

◆ channel

final Channel com.osroyale.net.session.Session.channel
protected

The channel attached to this session.

Definition at line 50 of file Session.java.

◆ host

final String com.osroyale.net.session.Session.host
protected

The users host address.

Definition at line 55 of file Session.java.


The documentation for this class was generated from the following file: