class Rsrb::Net::Session

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

Constants

Credentials

@return [Struct] a structure object containing the username and password for the session.

Attributes

connection[R]

The EventMachine connection.

credentials[R]

The credentials for this session.

in_cipher[R]

The ISAAC cipher used for incoming packets.

out_cipher[R]

The ISAAC cipher used for outgoing packets.

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 lib/rsrb/net/session.rb, line 29
def initialize(connection, username, password, uid, in_cipher, out_cipher)
  @connection = connection
  @credentials = Credentials.new(username, password)
  @username = username
  @password = password
  @uid = uid
  @in_cipher = in_cipher
  @out_cipher = out_cipher
end