Module: Packet::Core

Included in:
Reactor, Worker
Defined in:
lib/packet/packet_core.rb

Defined Under Namespace

Modules: ClassMethods, CommonMethods

Class Method Summary collapse

Class Method Details

.included(base_klass) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/packet/packet_core.rb', line 4

def self.included(base_klass)
  base_klass.extend(ClassMethods)
  base_klass.instance_eval do
    iattr_accessor :connection_callbacks
    inheritable_attribute(:connection_callbacks,:default => {})
    attr_accessor :read_ios, :write_ios, :listen_sockets
    attr_accessor :connection_completion_awaited,:write_scheduled
    attr_accessor :connections, :windows_flag
    attr_accessor :internal_scheduled_write,:outbound_data,:reactor
    include CommonMethods
  end
end