Method: Packet::Core::CommonMethods#initialize
- Defined in:
- lib/packet/packet_core.rb
#initialize ⇒ Object
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'lib/packet/packet_core.rb', line 259 def initialize @read_ios ||= [] @write_ios ||= [] @connection_completion_awaited ||= {} @write_scheduled ||= {} @internal_scheduled_write ||= {} # internal outbound data @outbound_data = [] @connections ||= {} @listen_sockets ||= {} @binding = 0 @on_next_tick = nil # @timer_hash = Packet::TimerStore @timer_hash ||= {} # @thread_pool = ThreadPool.new(thread_pool_size || 20) @windows_flag = windows? @reactor = self end |