Method: Quaff::Call#setdest
- Defined in:
- lib/call.rb
#setdest(source, options = {}) ⇒ Object
Sets the Source where messages in this call should be sent to by default.
Options:
:recv_from_this - if true, also listens for any incoming
messages over this source's connection. (This is only
meaningful for connection-oriented transports.)
97 98 99 100 101 102 |
# File 'lib/call.rb', line 97 def setdest source, ={} @src = source if [:recv_from_this] and source.sock @cxn.add_sock source.sock end end |