summaryrefslogtreecommitdiff
path: root/toxcore/group_chats.c
AgeCommit message (Collapse)Author
2014-07-07Fixed overflow bug.irungentoo
2014-06-15Astyled code.irungentoo
2014-06-13Const correctness in toxcore/group_chats.cMarc Schütz
2014-06-10Const correctness in various interdependent filesMarc Schütz
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-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-03Maximum name lengths should now be the real maximum and not one byte less.irungentoo
2014-03-31tox_group_get_names now returns a list of name lengths along with the list ↵irungentoo
of names. TCP test now also tests pings.
2014-02-23Strings now no longer need to be NULL terminated.irungentoo
2014-02-19Fixed the groupchat bug in a smarter way.Jman012
2014-02-19Groupchat crashing bug fixed.Jman012
2014-02-16Adjusted some delays.irungentoo
Decreased LAN discovery packet sending interval. Attempted fix of the everyone is unknown bug in group chats.
2014-02-16Possibly fixed the issue that group chats would sometimes DOS themselves.irungentoo
2014-02-07Use a more appropriate distance function for group chats.irungentoo
2013-12-15Code cleanups.irungentoo
No functionality changed.
2013-12-13added groupchat actionsJfreegman
2013-12-08Send groupchat ips like DHT ones.irungentoo
2013-12-07Added/updated some basic docs and cleaned up some things.irungentoo
2013-12-06Merge branch 'master' into hardenirungentoo
2013-11-2730 seconds is way too long.irungentoo
2013-11-27Fixed ghost peer problem.irungentoo
2013-11-25Behaviour changes for the group chat callback.irungentoo
2013-11-25Merge pull request #663 from FullName/peerchange-detailirungentoo
group_namelistchange(): for gui reasons, divulge peernumber and change type
2013-11-25setnick(): don't callback when an identical nickname is set againCoren[m]
2013-11-25Mimic more exactly what delpeer() does in the callback.Coren[m]
If the deleted peer wasn't last, send a name-change update for the overwritten peer.
2013-11-24group_namelistchange(): for ui reasons, divulge the peernumber and the ↵Coren[m]
nature of the change (add, del, name change). tox.*, Messenger.*, group_chats.*: - expand interface of callback by peernumber/change groupchats.c: - call callback in addpeer/delpeer/setnick with peernumber and flag nTox.c: - print_groupchatpeers(): print as many names on a line as possible, not one peer per line - print_groupnamelistchange(): only print the change, if possible (i.e. "new peer", "peer's new name") - added command "/p" to print the list of peers
2013-11-24Fixed bug with group chats.irungentoo
2013-11-23Added callback that tells you when the peer name list of a group chat changes.irungentoo
2013-11-22Added function to get the number of peers and list of names for group chats.irungentoo
2013-11-21Group chat peers now tell others when they quit.irungentoo
Also increased ping timeout.
2013-11-18Merge pull request #650 from FullName/ID-IP-basicirungentoo
Significantly trimmed down version of an ID<=>IP cache.
2013-11-16Send our name when someone new joins the group chat.irungentoo
2013-11-17Assoc's array is now allocated dynamically and per default much smaller (320 ↵Coren[m]
entries). id_hash() was not at all working as expected for very small bucket size (when (size / 4) was zero). Simplified to be trivially correct. Also added a used flag on adding an entry, which is set by callers if they have that association in active use. Those get priority over unused entries on collision. Fleshed out test to be at least elementary useful. Each group chat now uses an own, small assoc (80 entries).
2013-11-14Significantly trimmed down version of an ID<=>IP cache.Coren[m]
Besides acknowledging timeouts, the module isn't trying to do anything fancy with the data besides storing and retrieving.
2013-11-12Cleaned up the code.irungentoo
2013-11-12Merge branch 'group_peername' of https://github.com/FullName/ProjectTox-Core ↵irungentoo
into FullName-group_peername
2013-11-12Group chat: Add a nickname message. Remove strange default nickname. ↵Coren[m]
(Seriously...) group_chats.*: - group_send_nick() to send own name - setnick() to store a received name Messenger.c: - group_send_nick() before group_sendmessage() (in regular intervals, to inform new peers) nTox.c: - print_groupmessage(): on error or on a name of length zero the result of tox_group_peername() isn't null-terminated, catch that
2013-11-11Fixed possible segfault.irungentoo
2013-11-10Merge branch 'master' into hardenirungentoo
Conflicts: toxcore/DHT.c
2013-11-08Code cleanups.irungentoo
2013-11-05Auto delete inactive peers in the group chat.irungentoo
2013-11-04Send ping packets in group chats every 30 seconds.irungentoo
2013-10-30Testing requests are now sent.irungentoo
2013-10-25All modules using unix_time should run unix_time_update()irungentoo
2013-10-24Move unix_time(), id_cpy()/id_eq(), is_timeout() to util.*Coren[m]
unix_time(): - returns local value for current epoch - value is updated explicitly with unix_time_update() called at new_DHT()/doMessenger()/do_DHT() is_timeout(): - uses the local value for current epoch id_cpy()/id_eq() => id_copy()/id_equal(): - centralized duplicate definitions - replaced (most) memcpy()/memcmp() of (*, *, CLIENT_ID_SIZE) with id_copy()/id_equal()
2013-10-17Fixed minor typo.Bahkuh
2013-09-21moved stuff that belongs into ping.[ch] thereCoren[m]
DHT.*, ping.*: - moved stuff from struct DHT into struct PING: toping, last_toping - moved functions add_toping(), do_toping() - made id_closest() publicly accessible - send_ping_request(): killed (Net_Crypto *c) parameter in favor of copying it into (PING *) on new_ping() group_chats.c: - killed local 1:1 copy in favor of DHT.c::id_closest()
2013-09-17astyled everything.irungentoo
2013-09-16Functions to get name of peer in group chat added.irungentoo
Group message callback modified.
2013-09-12Merge remote-tracking branch 'upstream/master' into IntegrationCoren[m]
Conflicts resolved: toxcore/Messenger.c toxcore/network.h