You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some applications want to set up endpoints (e.g. for Onion services or client connections) before doing any "async stuff". This means they can't yet have a Tor instance, because that needs to do async-stuff.
I'm considering a design like this: you create a "factory that can create endpoints" using something like connect_later or launch_later (which take the same options as connect or launch). The object returned from either of those two functions would have methods to create the various endpoints that are possible (e.g. create_onion, stream_via or similar).
You would then get out an instance implementing IStreamServerEndpoint which would first launch (or connect to) tor and then do the other thing you asked for (e.g. create a new onion service).
Some applications want to set up endpoints (e.g. for Onion services or client connections) before doing any "async stuff". This means they can't yet have a
Tor
instance, because that needs to do async-stuff.I'm considering a design like this: you create a "factory that can create endpoints" using something like
connect_later
orlaunch_later
(which take the same options asconnect
orlaunch
). The object returned from either of those two functions would have methods to create the various endpoints that are possible (e.g.create_onion
,stream_via
or similar).You would then get out an instance implementing
IStreamServerEndpoint
which would first launch (or connect to) tor and then do the other thing you asked for (e.g. create a new onion service).The text was updated successfully, but these errors were encountered: