Age | Commit message (Collapse) | Author |
|
Various changes to nTox including a potential crash (also possible from remote!)...
|
|
|
|
|
|
remote!), and a tiny change to toxcore.
Crash stuff:
nTox.c:
- do_refresh(): avoid crashes (input a "%" and the client goes "boom!", send someone a string with embedded "%" and see him blow up...)
Other stuff:
toxcore: tox.h (doc.)/network.c (code):
- networking_wait_prepare(): return -1 if lenptr was NULL and therefore not settable
nTox.c:
- fraddr_to_str(): function to convert a TOX_FRIEND_ADDRESS into a segmented (and therefore line-breakable) string
- print_friendlist(): print index of friend on name line, print id on 2nd line
- command /f: skip spaces (and +) inside a friend id
- command /r (new): "/r #" to remove a friend
- main(): reduce cpu consumption if we're not currently sending files
|
|
|
|
Print a more detailed message on CHAT_CHANGE_PEER_DEL, so a user isn't confounded...
|
|
confounded by the change of peer numbers.
On deleting the last peer, it's just a delete.
On deleting any other peer, the last peer is moved into that space, gaining a different number.
Print that detail where appropriate.
|
|
|
|
group_namelistchange(): for gui reasons, divulge peernumber and change type
|
|
|
|
If the deleted peer wasn't last, send a name-change update for the overwritten peer.
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
Also increased ping timeout.
|
|
De-clusterfucks travis logs.
|
|
|
|
|
|
|
|
see useful stuff
|
|
Added functions tox_count_chatlist and tox_copy_chatlist.
|
|
now proper. Also fixed tox_copy_friendlist.
|
|
|
|
Fix instructions
|
|
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.
|
|
|
|
|
|
These functions are akin to the tox_count_friendlist and tox_copy_friendlist, made available on the public API.
|
|
Significantly trimmed down version of an ID<=>IP cache.
|
|
Tolerate instable connectivity.
|
|
|
|
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.
|
|
|
|
|
|
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).
|
|
Basic wrap(): Embed continuation markers if there's enough space.
|
|
On replacing a client with another, clear the stale association.
|
|
Besides acknowledging timeouts, the module isn't trying to do anything fancy with the data besides storing and retrieving.
|
|
wrap(): Embed continuation markers if there's enough space.
|
|
IPv6 address of ::1 is local.
|
|
Add a "conversation mode", where you set your conversation partner once ...
|
|
Also check both associations for timeout, not just the incoming one.
Also removed client_in_list(): static & unused.
|
|
|
|
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.
|
|
|
|
into FullName-group_peername
|