87f5f9d4eb
Primary rationale: The part that DHT saves changes if IP is expanded to IPv6. To let people keep their friends/name, change the datafile format now, while everybody is still on the same page. Loading/Saving rewritten to allow a part of the file to be incomprehensible to the loading routine. Added a magic cookie at the beginning to mark the file as tox's. Changes in some part of the datafile can be skipped and the remaining parts still be consumed. Allows a wide margin of forward compatibility (like the IP to IPv6 transition, but also e.g. a change in the key format). As long as the file is not completely garbled, the routine will read as much as possible. Only the KEY section is considered mandatory: a malformed key section leads to a negative result. util.*: - holds the driving function which jumps from section to section and calls back with section length and tag (type) Messenger.c,DHT.*: - new loading functions call the util-function with a callback, which subsequently consumes the sections - old routines are kept to fall back onto if the magic cookie at the beginning isn't present - saving is still done in one local routine |
||
---|---|---|
auto_tests | ||
build | ||
docs | ||
m4 | ||
other | ||
testing | ||
tools | ||
toxcore | ||
.gitignore | ||
.travis.yml | ||
AUTHORS | ||
autogen.sh | ||
ChangeLog | ||
configure.ac | ||
COPYING | ||
INSTALL | ||
INSTALL.md | ||
libtoxcore.pc.in | ||
Makefile.am | ||
NEWS | ||
README | ||
README.md |
Project Tox, also known as Tox, is a FOSS (Free and Open Source Software) instant messaging application aimed to replace Skype.
With the rise of governmental monitoring programs, Tox aims to be an easy to use, all-in-one communication platform (including audio, and videochats in the future) that ensures their users full privacy and secure message delivery.
IRC: #tox on freenode, alternatively, you can use the webchat.
Website: http://tox.im
Developer Blog: http://dev.tox.im
Website translations: here
Qt GUI: see nurupo's repository
How to build Tox on Linux: YouTube video
How to use Tox on Windows: YouTube video
For Mac OSX read INSTALL.md
Objectives:
Keep everything really simple.
The Complex Stuff:
- Tox must use UDP simply because hole punching with TCP is not as reliable.
- Every peer is represented as a byte string (the public key of the peer [client ID]).
- We're using torrent-style DHT so that peers can find the IP of the other peers when they have their ID.
- Once the client has the IP of that peer, they start initiating a secure connection with each other. (See Crypto)
- When both peers are securely connected, they can exchange messages, initiate a video chat, send files, etc, all using encrypted communications.
- Current build status:
TODO:
Why are you doing this? There are already a bunch of free skype alternatives.
The goal of this project is to create a configuration-free P2P skype replacement. Configuration-free means that the user will simply have to open the program and without any account configuration will be capable of adding people to his friends list and start conversing with them. There are many so-called skype replacements and all of them are either hard to configure for the normal user or suffer from being way too centralized.