summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-21Group chat peers now tell others when they quit.irungentoo
Also increased ping timeout.
2013-11-20Merge pull request #659 from stqism/masterirungentoo
De-clusterfucks travis logs.
2013-11-20echo is uselessSean
2013-11-20Fixed "'"Sean
2013-11-20Fixed thatSean
2013-11-20No one actually gives a shit about seeing this, so lets actually be able to ↵Sean Qureshi
see useful stuff
2013-11-19Merge pull request #656 from Jman012/masterirungentoo
Added functions tox_count_chatlist and tox_copy_chatlist.
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-19Merge pull request #657 from fr0stycl34r/patch-1irungentoo
Fix instructions
2013-11-19Fix instructionscl34r
sudo echo "/usr/local/lib/" >> /etc/ld.so.conf.d/locallib.conf doesn't work so well... echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf should work better.
2013-11-19Fixed possible issue.irungentoo
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-17Nodes now only send good nodes (or the node that was specifically asked for).irungentoo
2013-11-17Merge pull request #652 from FullName/reset_on_long_timeoutirungentoo
Tolerate instable connectivity.
2013-11-17Fixed segfault.irungentoo
2013-11-17Tolerate instable connectivity: if *all* set close nodes are in terminal ↵Coren[m]
timeout (KILL_NODE_TIMEOUT), reset them all to BAD_NODE_TIMEOUT. That keeps the client trying to at least ping the nodes in the hopes of the connection coming back up.
2013-11-16Fixed build error on windows.irungentoo
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-15Merge pull request #651 from FullName/ntox-wrap-basic-with-continuationirungentoo
Basic wrap(): Embed continuation markers if there's enough space.
2013-11-14Merge pull request #649 from FullName/DHT-client_id-change-wipe-other-addressirungentoo
On replacing a client with another, clear the stale association.
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-14Wrapping: Expanded space of output to be a bit larger than input. Basic ↵Coren[m]
wrap(): Embed continuation markers if there's enough space.
2013-11-13Merge pull request #648 from FullName/LAN_ip-ip6-loopback-is-localirungentoo
IPv6 address of ::1 is local.
2013-11-13Merge pull request #647 from FullName/ntox-conversationsirungentoo
Add a "conversation mode", where you set your conversation partner once ...
2013-11-14On replacing a client with another, clear the stale association.Coren[m]
Also check both associations for timeout, not just the incoming one. Also removed client_in_list(): static & unused.
2013-11-13IPv6 address of ::1 is local.Coren[m]
2013-11-13Add a "conversation mode", where you set your conversation partner once and ↵Coren[m]
then all non-commands are sent as message to them. /cf # rsp. /cg # sets, /cr resets target Also reformatted display of sent group message slightly to look less beta-ish. Then using "#<num>" for group number vs. "<num>" for friend/peer numbers. Also changed to a slightly different message on people without name.
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-12Merge pull request #645 from FullName/nTox-patchesirungentoo
nTox: enforce friend name null termination, reduce memory loss, allow nickchange as oldname=>newname
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-12Undo faulty newlines, undo extra newlines.Coren[m]
2013-11-11Fixed possible segfault.irungentoo
2013-11-11Merge remote-tracking branch 'upstream/master' into nTox-patchesCoren[m]
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-10Merge pull request #643 from FullName/nTox-patchesirungentoo
Started as a simple bugfix for wrap(), expanded to more detailed help.
2013-11-10Fixed test.irungentoo
2013-11-10Fixed small issues.irungentoo
DHT_test now only prints non zero entries.
2013-11-10Added more printing to DHT_test, fixed typo.irungentoo
2013-11-10Merge branch 'master' into hardenirungentoo
Conflicts: toxcore/DHT.c
2013-11-10Started as a simple bugfix for wrap(), expanded to more detailed help.Coren[m]
nTox.c: - flag[]: additional flag for special wrapping - help expanded and split (to keep below 256 chars) - new_lines_mark(): stores flag for special wrapping - print_friendlist(): . - extracted pattern for output . - added length of id string allocation . - replaced '\t' with '+ ', wrappers don't account for '\t' - line_eval(): . - removed a few do_refresh() directly after a new_lines() (calls do_refresh() at its end) . - 'h' (help): parsing of an additional character for f(riend) or g(roup) - wrap(): . - the major bugfix: . - no more endless looping if the input had a substring with no spaces . for more than line_width (e.g. ID of 78 and window smaller than 78) - wrap_bars(): wrap() for "rich" messages, honors embedded '\n', breaks preferable at '|' - print_help(): listed all options and added explanations - print_invite(): fixed minuscule typo - main(): made print_help() reachable again nTox.h: - majorly cut down to what is really needed
2013-11-09Optimized data sending slightly more.irungentoo
2013-11-08Code cleanups.irungentoo
2013-11-07Merge branch 'add2lists_forward' of ↵irungentoo
https://github.com/FullName/ProjectTox-Core into FullName-add2lists_forward
2013-11-07Merge pull request #642 from FullName/dht_handle_sendnodes_unifyirungentoo
Unify most of handle_sendnodes[_ipv6]() into a common core.
2013-11-06Merge pull request #641 from FullName/autotests_reduceirungentoo
Reduce duplicate data. Add a mostly empty skeleton test.