summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.h
AgeCommit message (Collapse)Author
2014-12-21Some refactoring of proxy codeMaxim Biro
2014-12-09Merge branch 'more_consistent_custom_packet_handlers' of ↵irungentoo
https://github.com/wrouesnel/toxcore
2014-12-09Change prototype for custom_packet_handler functionsWill Rouesnel
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)
2014-11-04Some initial groupchat lossy packet code.irungentoo
2014-10-02People in groups can now be added/removed from friends list without issues.irungentoo
2014-10-02Removed useless code.irungentoo
2014-10-01Group chats now actually work somewhat.irungentoo
2014-09-28Group chats now use friendcon_id instead of friendnumber.irungentoo
2014-09-28Merge branch 'unset_avatar' of https://github.com/JFreegman/toxcoreirungentoo
2014-09-27Removed send_group_message_packet and its callback function fromirungentoo
Messenger.
2014-09-27Moved all the connection stuff from messenger to friend_connection.irungentoo
Messenger was doing way do many things. friend_connection takes care of finding and establishing a connection to friends.
2014-09-27Make the ip port from DHT timeout after a while.irungentoo
Some small fixes.
2014-09-26Moved cleaup_friend functionality to Messenger.irungentoo
2014-09-26Added callbacks to onion_client and net_crypto for the temp dht key.irungentoo
Better than the polling mess. Moved DHT to Messenger from onion_client (still needs some cleanups).
2014-09-26add API function to unset avatarJfreegman
2014-09-25More groupchats code written.irungentoo
2014-09-25Removed groupchats from core.irungentoo
2014-09-24housekeepingdubslow
2014-09-22Some fixes to avatar pull request.irungentoo
Some bug fixes. Grouped all avatar related functions in the same place in tox.h
2014-09-22Merge branch 'avatars' of https://github.com/ittner/toxcoreirungentoo
2014-09-21Remove chattiness from avatar data transfersAlexandre Erwin Ittner
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.
2014-09-21Remove support for avatar image formats other than PNGAlexandre Erwin Ittner
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.
2014-09-12Merge branch 'tox_connect' of https://github.com/saneki/toxcoreirungentoo
2014-09-12Removed tox_connect, initial connections are made on first tox_dosaneki
2014-09-09Fixed spacingsaneki
2014-09-09Added tox_connect function, no connecting done during tox_loadsaneki
2014-09-01Increased time between ping packets by 1 second.irungentoo
This might make active connections less likely to time out needlessly.
2014-08-30Add support for user avatars in the core protocolAlexandre Erwin Ittner
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.
2014-08-14UDP can now be disabled.irungentoo
new_messenger() now takes an options struct as an argument.
2014-07-02Merge branch 'const_correctness' of https://github.com/schuetzm/ProjectTox-Coreirungentoo
2014-06-30Const-correctness for tox.cMarc Schütz
2014-06-30Const correctness for toxcore/Messenger.c and related filesMarc Schütz
2014-06-11Added ability to set custom lossless packets in Messenger.irungentoo
2014-06-10Astyle and fixes.irungentoo
2014-06-10Const correctness in various interdependent filesMarc Schütz
2014-06-02Increased some timeouts to try to prevent disconnections whenirungentoo
transferring files on wireless networks.
2014-06-01Fixed TOX_MAX_MESSAGE_LENGTH define.irungentoo
Removed some useless code from toxcore. Astyled core code with new version of astyle.
2014-05-30Renamed tox_do_run_interval to tox_do_interval.irungentoo
tox_do_interval now returns a time in ms based on how much action is going on in net_crypto.
2014-05-26Fixed tox_get_num_online_friends function.irungentoo
Removed useless code.
2014-05-22Changed lossy packet function names to better ones.irungentoo
Fixed rtp checking the wrong return value for one.
2014-05-21Added functions to send and receive lossy encrypted packets overirungentoo
the Tox connection. A/V should now work over TCP.
2014-05-19max number of shared relaysnotsecure
2014-05-19tcp relay sharing (PACKET_ID_SHARE_RELAYS)notsecure
2014-05-08Merge branch 'master' into TCPirungentoo
2014-05-02Remove Lossless UDP (This breaks Tox.)irungentoo
2014-04-23Major cleanups.irungentoo
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.
2014-04-21Fixed a test.irungentoo
Removed function from Messenger.h
2014-04-21Crypto related cleanups.irungentoo
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.
2014-04-20Small cleanup.irungentoo
2014-04-16multiple spelling fixesCarlos E. Garcia