Class: ZMachine::Channel

Inherits:
Object
  • Object
show all
Defined in:
lib/zmachine/channel.rb

Direct Known Subclasses

TCPChannel, ZMQChannel

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(selector) ⇒ Channel

Returns a new instance of Channel.



8
9
10
11
# File 'lib/zmachine/channel.rb', line 8

def initialize(selector)
  @selector = selector
  @outbound_queue = []
end

Instance Attribute Details

#handlerObject

Returns the value of attribute handler.



6
7
8
# File 'lib/zmachine/channel.rb', line 6

def handler
  @handler
end

#selectorObject (readonly)

Returns the value of attribute selector.



5
6
7
# File 'lib/zmachine/channel.rb', line 5

def selector
  @selector
end

#socketObject (readonly)

Returns the value of attribute socket.



4
5
6
# File 'lib/zmachine/channel.rb', line 4

def socket
  @socket
end