This commit is contained in:
2024-02-19 18:42:42 +00:00
parent 946dea2d9e
commit 5218cc1c7c
11 changed files with 188 additions and 28 deletions

View File

@@ -29,6 +29,10 @@ files. Link all 3 filenames to ```libtoxcore.so``` if you have only
```c-toxcore``` with ```cmake``` rather than
```autogen/configure```). The environment variable TOXCORE_LIBS overrides;
look in the file ```tox_wrapper/libtox.py``` for the details.
You can use pip to install the package from the source:
```
make install
```
# Tests
@@ -43,9 +47,9 @@ def LOG_DEBUG(a): print('DBUG> '+a)
def LOG_TRACE(a): pass # print('TRAC> '+a)
```
to all ```pass #``` or use ```logging.logger``` to suite your tastes.
```logging.logger``` can be dangerous in callbacks in ```Qt``` applications,
so we use simple print statements as default. The same applies to
```tox_wrapper/tests/tests_wrapper.py```.
```logging.logger``` can be dangerous in callbacks in GUI applications
if it's wired up to a console, so we use simple print statements as default.
The same applies to ```tox_wrapper/tests/tests_wrapper.py```.
## Prerequisites
@@ -92,9 +96,6 @@ debugger is a crucial advantage.
## Updates
To regerate the bindings to a new c-toxcore, install ctypesgen
```
make build
```
and exit the Makefile to set CTOXCORE to where your c-toxcore is. Then
```
make install
@@ -109,7 +110,7 @@ You may need to resolve any rejections if the ctypesgen file has changed.
Although Tox works over Tor, we do not recommend its usage for
anonymity as it leaks DNS requests due to a 6-year old known security
issue: https://github.com/TokTok/c-toxcore/issues/469 unless your Tox client
does hostname lookups before calling Tox (like toxygen does). Otherwise,
does hostname lookups before calling Tox (like [toxygen](https://git.plastiras.org/emdee/tox_wrapper) does). Otherwise,
do not use it for anonymous communication unless you have a firewall in place.
The Tox project does not follow semantic versioning of its main structures