Status |
---|
embed tor in your application
- start tor
- with inline configuration
- with environment variables
#include "onionpp.h"
int main() {
onionpp::Tor tor;
tor.start(true); // true to wait until tor has bootstrapped
// else you can pass false and check via
// tor.isBootstrapped or tor.getBootstrapPercentage
// use the tor socks port
return 0;
}
from onionpy import Tor
tor = Tor()
tor.start(True) # True to wait until tor has bootstrapped
# else you can pass false and check via
# tor.is_bootstrapped or tor.get_bootstrap_percentage
Bindings / OS | Linux | Windows |
---|---|---|
Python | X | * |