Class: EMRPC::LocalConnection::Channel
- Defined in:
- lib/emrpc/evented_api/local_connection.rb
Overview
Helper class representing abstract connection channel.
Instance Attribute Summary collapse
-
#conn12 ⇒ Object
Returns the value of attribute conn12.
-
#conn21 ⇒ Object
Returns the value of attribute conn21.
Instance Method Summary collapse
- #connection ⇒ Object
-
#initialize(pid1, pid2, conn12 = nil) ⇒ Channel
constructor
A new instance of Channel.
- #unbind ⇒ Object
Constructor Details
#initialize(pid1, pid2, conn12 = nil) ⇒ Channel
Returns a new instance of Channel.
8 9 10 11 |
# File 'lib/emrpc/evented_api/local_connection.rb', line 8 def initialize(pid1, pid2, conn12 = nil) @conn21 = LocalConnection.new(pid2, pid1, self) @conn12 = conn12 || LocalConnection.new(pid1, pid2, self) end |
Instance Attribute Details
#conn12 ⇒ Object
Returns the value of attribute conn12.
7 8 9 |
# File 'lib/emrpc/evented_api/local_connection.rb', line 7 def conn12 @conn12 end |
#conn21 ⇒ Object
Returns the value of attribute conn21.
7 8 9 |
# File 'lib/emrpc/evented_api/local_connection.rb', line 7 def conn21 @conn21 end |