Age | Commit message (Collapse) | Author |
|
reserve half of client lists for ipv4 (take #2)
|
|
|
|
Added breaks on the new packet handlers in doFriends for the switch statement, and added a default.
|
|
|
|
|
|
|
|
tox_get_friendlist() -> tox_copy_friendlist().
You now have to allocate your own memory to pass into tox_copy_friendlist.
To help with this, tox_count_friendlist() has been added to get the length
of the friend list.
|
|
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()
|
|
|
|
Added some actual flow control and made send/recieve buffers grow when
necessary.
|
|
|
|
Thou shalt not take singular commands after an if into #ifdef DEBUG...
|
|
toxcore/Messenger.c:
- Messenger_load_old(): brackets around an #ifdef'ed line to avoid data pointer being only pushed forward properly in the error case
|
|
|
|
and treat element zero as the furthest
|
|
nTox: keep bootstrap()ping every 10 seconds, until we get a connection...
|
|
running (the initial one might get lost, it IS done via UDP after all)
nTox.c:
- main(): keep calling tox_bootstrap_from_address() every 10 seconds, until the connection is established
|
|
into ipv6.yield50%toipv4
|
|
Fix compilation on windows for ipv6 code
|
|
DHT.c:
- we have to actually count the number of addresses in the field, because sort_list() will move the stuff around
- improved replace_good() substantially by throwing away the "furthest" client_id, not the one just a bit worse than the new one (but better than all the later ones in the field!)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
also rename client_in_list() to client_or_ip_port_in_list(), it also checks for an identical ip/port and replaces the client_id, recycling the entry
DHT.c:
- rename client_in_list() to client_or_ip_port_in_list()
- replace_bad(), replace_good(): if IPv6, only insert into the upper half of the given list
- addto_lists(): convert ipv4-in-ipv6 mapped to ipv4
|
|
Allow loginit() to be delayed, store loglog() data in intermediate buffer...
|
|
|
|
|
|
and flush it out when loginit() is called
util.c:
- handle loglog() before loginit() by storing the lines into an expanding buffer
- when loginit() is called, write out and kill the buffer
network.c:
- push loginit() to the point where we know the actually used port
|
|
|
|
|
|
numchats needs to be decremented
|
|
|
|
Group message callback modified.
|
|
Make test "endtoend" pass on 'slow' systems
|
|
Tests of state loading/saving lead to two fixes for DHT.c and util.c
|
|
|
|
util.c:
- fix in empty section at the end of the state, showed as bug when having an empty name
DHT.c:
- fix in saving less data than originally announced, showed as bug when not having reached any clients ever (no clients or only with timestamp of zero)
|
|
auto_test/crypto_test.c:
- test "endtoend": increased timeout from default ~5s to 15s, making it pass on slower systems
- signed/unsiged warning fixed by cast
|
|
|
|
|
|
State loading/saving: Instead of a blob, segment into sections marked with tags.
|
|
Fix warnings of -Wall -Wextra
|
|
|
|
Messenger.c:
- additional size checks
- removed one pointless copying of data, instead using it directly
util.c:
- lost a newline vs. master
|
|
Conflicts:
toxcore/Messenger.c
toxcore/util.c
toxcore/util.h
|
|
nTox: Save data on friend operations/exit
|
|
Fix in ip_equal, plus testing code which led to that fix...
|