Age | Commit message (Collapse) | Author |
|
|
|
|
|
https://github.com/wrouesnel/toxcore
|
|
Change the custom_packet_handler callback function interface to be
consistent with other callback interfaces.
The new interface takes the Messenger object calling as the first
parameter, and moves the user data object to be the last parameter.
This makes it comparable to the callbacks for file transfer and the
like, and should simplify building interfaces.
The new prototype is: int (*)(Messenger *m, int32_t friendnumber, const
uint8_t *data, uint32_t len, void *object)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Messenger.
|
|
Messenger was doing way do many things.
friend_connection takes care of finding and establishing a connection
to friends.
|
|
Some small fixes.
|
|
|
|
Better than the polling mess.
Moved DHT to Messenger from onion_client (still needs some cleanups).
|
|
|
|
|
|
|
|
|
|
Some bug fixes.
Grouped all avatar related functions in the same place in tox.h
|
|
|
|
The chatty approach for the avatar data transfer was intended as a
security feature to add explicit delays to the transfer and prevent
amplification attacks among authenticated friends. This was deemed
unnecessary in the code review and, therefore, replaced by a simpler
approach that sends all data in a single burst.
|
|
Support for other formats was deemed unnecessary in the code review
and therefore removed. The value for the constant TOX_AVATARFORMAT_PNG
is now set in stone; if the other formats become needed again in the
future, this commit shall be reverted and the enum values reordered to
keep compatibility.
|
|
|
|
|
|
|
|
|
|
This might make active connections less likely to time out needlessly.
|
|
Add a protocol and the APIs to straightforwardly support user avatars
in client applications. The protocol is designed to transfer avatars
in background, between friends only, and minimize network load by
providing a lightweight avatar notification for local cache validation.
Strict safeguards are imposed to avoid damage from non-cooperative or
malicious users and to limit network usage.
The complete documentation is available in docs/Avatars.md and sample
code is available in testing/test_avatars.c.
Code and documentation are released under the GNU GPLv3 or later, as
described in the file COPYING.
|
|
Messages now have a maximum length of 1372.
Receipt packets have been removed, instead net_crypto tells us if
the other peer has received the packets or not.
|
|
new_messenger() now takes an options struct as an argument.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
transferring files on wireless networks.
|
|
Removed some useless code from toxcore.
Astyled core code with new version of astyle.
|
|
tox_do_interval now returns a time in ms based on how much action
is going on in net_crypto.
|
|
Removed useless code.
|
|
Fixed rtp checking the wrong return value for one.
|
|
the Tox connection.
A/V should now work over TCP.
|
|
|
|
|
|
|
|
|
|
Fixed circular dependency between DHT and net_crypto: DHT no longer
depends on net_crypto.
Moved the crypto request packets functions to crypto core and DHT.
Cleaned up/added some defines that can be used to get the true maximum
length of things like the friends request message.
MAX_DATA_SIZE has been replaced in most places by more appropriate defines.
|
|
Removed function from Messenger.h
|
|
Moved Bunch of functions from net_crypto to crypto_core.
decrypt_data_fast and decrypt_data_symmetric were the same thing
therefore, removed decrypt_data_fast.
Replaced all the crypto_secretbox_* defines with the equivalent
crypto_box_* one.
New define: crypto_box_KEYBYTES that is equal to
crypto_box_BEFORENMBYTES.
|