summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
AgeCommit message (Collapse)Author
2014-02-18Astyled and added tests.irungentoo
2014-02-16Typing: Forgot the callback argument types.Jman012
2014-02-16Typing: Changed all return values to int for consistency and the -1 error.Jman012
2014-02-16Fixed user typing bug where it'd alway return an error.Jman012
2014-02-16Added user typing changes in core.Jman012
2014-02-15Added callback for A/V usage.irungentoo
2014-02-15Fixed issue.irungentoo
2014-02-14Added custom userpackets.irungentoo
A way to send and handle lossy UDP packets coming from friends. Will be used for A/V.
2014-02-12All strings should now be forced terminated when received.irungentoo
2014-02-07decrement counter on friend deleteJfreegman
2014-02-07added API function to get online friend countJfreegman
2014-01-20Adjusted some timeouts and fixed possible memory leak.irungentoo
2014-01-19Added no_replay and added some things to the docs.irungentoo
2014-01-18Some optimizations and fixes.irungentoo
2014-01-17Small performance increases.irungentoo
2014-01-17Incorporated onion into Tox.irungentoo
Fixed a couple of issues related to that.
2014-01-01Some small cleanups.irungentoo
TODO: remove old todos that have been done.
2013-12-26It makes more sense for new_keys() to be in new_net_crypto()irungentoo
2013-12-21Added function to save an encrypted version of the messenger.irungentoo
Also added some tests.
2013-12-14Fixed comment.irungentoo
2013-12-13added groupchat actionsJfreegman
2013-12-09Fixed possible issue.irungentoo
2013-12-07Added/updated some basic docs and cleaned up some things.irungentoo
2013-12-06Merge branch 'master' into hardenirungentoo
2013-12-04Merge pull request #671 from palistov/do-friends-cleanupirungentoo
Clean up do_friends function
2013-12-04Messenger: Fix compile issue with check_friend_request_timed_outPaul Holden
2013-12-02Logging: Messenger's "Friend" and DHT's "DHT_Friend" don't necessarily use ↵Coren[m]
the same indices. Match the indices beforehand and then log the matched up data. Also log unmatched "DHT_Friend"s minimally.
2013-12-02Messenger: New function to check & handle timed-out friend requestsPaul Holden
2013-11-29Fixed possible issue.irungentoo
2013-11-29Should return 0 for tox_file_dataremaining since it returns unsignedAZ Huang
2013-11-29Fix return code inconsistency.AZ Huang
2013-11-27Friend requests from friends are now discarded.irungentoo
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-23Kill_messenger now kills 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-21Speed up group chat bootstrapping by a bit.irungentoo
2013-11-19Fixed a cuple stylistic bugs. Behaviour should be the same but the code is ↵Jman012
now proper. Also fixed tox_copy_friendlist.
2013-11-19Added null check to each chat before incrementing.Jman012
2013-11-18Fixed a few typos.Jman012
2013-11-18Added functions tox_count_chatlist and tox_copy_chatlist.Jman012
These functions are akin to the tox_count_friendlist and tox_copy_friendlist, made available on the public API.
2013-11-18Merge pull request #650 from FullName/ID-IP-basicirungentoo
Significantly trimmed down version of an ID<=>IP cache.
2013-11-17Fixed segfault.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-11nTox.c:Coren[m]
- multiple places: tox_getname() doesn't terminate the string, make sure nTox does - format_message(): . - renamed to print_formatted_message() . - changed semantics: does the new_line() itself, saves caller from freeing the buffer (which no caller did) . - changed signature: now also prints the friend's name when sending . - intern: date is only printed once, the message line gets only time - print_message(): enforce null termination - main(): . - setlocale() to init locale (for date/time printing) . - own name: ensure null termination Messenger.c: - notify of friend name change *before* the old name is overwritten
2013-11-10Fixed small issues.irungentoo
DHT_test now only prints non zero entries.