[tor-bugs] #7597 [Stem]: Send arbitrary parameters to functors

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Nov 30 21:48:09 UTC 2012


#7597: Send arbitrary parameters to functors
-------------------------+--------------------------------------------------
 Reporter:  robinson     |          Owner:  atagar
     Type:  enhancement  |         Status:  new   
 Priority:  normal       |      Milestone:        
Component:  Stem         |        Version:        
 Keywords:  events       |         Parent:  #7328 
   Points:               |   Actualpoints:        
-------------------------+--------------------------------------------------

Comment(by robinson):

 As an example:
 {{{
   def listener(event, channel):
     channel.send(event)

   chan1, chan2 = Pipe()
   with Controller as controller:
     controller.authenticate()
     controller.add_event_listener(listener, [CIRC, STREAM], chan1)
     time.sleep(5)
 }}}

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7597#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list