Class: RuneRb::Network::RS317::LogoutMessage

Inherits:
Message
  • Object
show all
Defined in:
app/network/protocol/rs317/outgoing/logout.rb

Overview

Since:

  • 0.9.3

Constant Summary

Constants included from Constants

Constants::BIT_MASK_OUT, Constants::BYTE_MUTATIONS, Constants::BYTE_ORDERS, Constants::BYTE_SIZE, Constants::CONNECTION_TYPES, Constants::LOGIN_RESPONSES, Constants::MESSAGE_SIZES, Constants::PROTOCOL_TEMPLATES, Constants::RW_TYPES, Constants::SIDEBAR_INTERFACES

Instance Attribute Summary

Attributes inherited from Message

#header, #mode

Instance Method Summary collapse

Methods inherited from Message

compile_header, #inspect, #peek, validate

Methods included from System::Log

#class_name, #err, #err!, #log, #log!, #symbolize_file

Constructor Details

#initialize(session) ⇒ LogoutMessage

Constructs a LogoutMessage

Parameters:

Since:

  • 0.9.3


6
7
8
9
# File 'app/network/protocol/rs317/outgoing/logout.rb', line 6

def initialize(session)
  super('w', { op_code: 109 }, :FIXED)
  session.disconnect(:logout)
end