class RuneRb::Net::Session

Extended information about a connection that has been validated, but may not have been authenticated yet.

Attributes

connection[R]

The EventMachine connection.

in_cipher[R]

The ISAAC cipher used for incoming packets.

out_cipher[R]

The ISAAC cipher used for outgoing packets.

password[R]

The player's password.

player[RW]
uid[R]

The client UID.

username[R]

The player's username.

Public Class Methods

new(connection, username, password, uid, in_cipher, out_cipher) click to toggle source

Creates a new session with validated credentials.

# File app/net/session.rb, line 25
def initialize(connection, username, password, uid, in_cipher, out_cipher)
  @connection = connection
  @username = username
  @password = password
  @uid = uid
  @in_cipher = in_cipher
  @out_cipher = out_cipher
end