txtorcon.interface
Module¶
Note: the Onion interfaces are defined in Onion APIs
interface.IStreamAttacher¶
- interface txtorcon.interface.IStreamAttacher¶
Used by
txtorcon.TorState
to map streams to circuits (seetxtorcon.TorState.set_attacher()
).Each time a new
txtorcon.Stream
is created, this interface will be queried to find out whichtxtorcon.Circuit
it should be attached to.Only advanced use-cases should need to use this directly; for most users, using the
txtorcon.Circuit.stream_via()
interface should be preferred.
interface.IStreamListener¶
- interface txtorcon.interface.IStreamListener¶
Notifications about changes to a
txtorcon.Stream
.If you wish for your listener to be added to all new streams, see
txtorcon.TorState.add_stream_listener()
.
interface.ICircuitListener¶
- interface txtorcon.interface.ICircuitListener¶
An interface to listen for updates to Circuits.