summaryrefslogtreecommitdiff
path: root/toxcore
AgeCommit message (Collapse)Author
2013-09-21Merge pull request #595 from FullName/MessengerLoadSaveirungentoo
Thou shalt not take singular commands after an if into #ifdef DEBUG...
2013-09-21Thou shalt not take singular commands after an if into #ifdef DEBUG...Coren[m]
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
2013-09-21Fix compilation on windows for ipv6 codeBtbN
2013-09-20Fixed bug.irungentoo
2013-09-20Small fix in Lossless UDP.irungentoo
2013-09-20Increased the size of the UDP buffers.irungentoo
2013-09-19Fixed bug in Lossless UDP.irungentoo
2013-09-19Fixed bug in Lossless UDP.irungentoo
2013-09-18Merge pull request #588 from FullName/LoggingPreInitStoringirungentoo
Allow loginit() to be delayed, store loglog() data in intermediate buffer...
2013-09-18Allow loginit() to be delayed, store loglog() data in intermediate buffer ↵Coren[m]
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
2013-09-17Merge branch 'group-chat'irungentoo
2013-09-17astyled everything.irungentoo
2013-09-17numchats needs to be decrementedJfreegman
2013-09-16Functions to get name of peer in group chat added.irungentoo
Group message callback modified.
2013-09-17Merge remote-tracking branch 'upstream/master' into MessengerLoadSaveCoren[m]
2013-09-17Tests of state loading/saving lead to two fixes for DHT.c and util.cCoren[m]
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)
2013-09-16Fixed build.irungentoo
2013-09-16Toxcore should never print anything when built normally.irungentoo
2013-09-16Merge pull request #576 from FullName/MessengerLoadSaveirungentoo
State loading/saving: Instead of a blob, segment into sections marked with tags.
2013-09-16Fix warnings of -Wall -WextraCoren[m]
2013-09-16additional length >= size checksCoren[m]
Messenger.c: - additional size checks - removed one pointless copying of data, instead using it directly util.c: - lost a newline vs. master
2013-09-16Merge remote-tracking branch 'upstream/master' into MessengerLoadSaveCoren[m]
Conflicts: toxcore/Messenger.c toxcore/util.c toxcore/util.h
2013-09-15Merge pull request #580 from FullName/networking_testirungentoo
Fix in ip_equal, plus testing code which led to that fix...
2013-09-15Fix in ip_equal, plus testing code which led to that fix...Coren[m]
network.c: - use the correct macro for IPv4-in-IPv6 test network_test.c: - bunch of tests for addr_resolve() and ip_equal()
2013-09-15Fix leaks and null dereferences in net_cryptoSebastian Stal
2013-09-15more portability fixes.irungentoo
2013-09-15Fixed portability problems.irungentoo
2013-09-15Fixed merge problems.irungentoo
2013-09-15Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Coreirungentoo
2013-09-15Fixed portablity problems.irungentoo
struct in6_addr member names can differ per platform.
2013-09-15Merge remote-tracking branch 'upstream/master' into IntegrationCoren[m]
2013-09-15ip_equal(): handle embedded v4 vs. native v4 as equalCoren[m]
network.c: - ip_equal(): on IPv4 vs. IPv6, check if the IPv6 is an embedded IPv4 and if true, compare that
2013-09-15addr_resolve() rewrite broke { (ipv6enabled == true) name => IPv4 address }Coren[m]
network.c: - addr_resolve(): save AF_UNSPEC ip4 address into ip4, not into to->ip4
2013-09-14DHT peer finding for new friends should now be slightly faster.irungentoo
Also fixed the "[i] could not send message" bug in nTox.
2013-09-14Fixed warnings.irungentoo
2013-09-14Fixed small problems, updated TODO.irungentoo
2013-09-14Small fixes.irungentoo
2013-09-14Fixed some warnings.irungentoo
2013-09-14astyled everything.irungentoo
2013-09-14Some fixes.irungentoo
2013-09-14DHT.c:Coren[m]
- get_close_nodes(): refactored the inner loop out into get_close_nodes_inner()
2013-09-14network.c:Coren[m]
- addr_resolve(): for() instead of while(), flip conditions for a much neater function (suggested by Andreas Schneider) - ip_ntoa(): enforced termination: terminate at the maximum position, that's the one snprintf() may forget - networking_poll(): forgot tabs2spaces
2013-09-14LAN_discovery.c:Coren[m]
- LAN_ip(): use standard macro from IPv4-in-IPv6 test
2013-09-14DHT.c:Coren[m]
- get_close_nodes()/sendnodes()/sendnodes_ipv6(): when selecting for SEND_NODES/SEND_NODES_IPV6, treat embedded IPv4-in-IPv6 addresses as being IPv4 Messenger.c: - added a named constant for sixty seconds friend/client dump - fix logging to convert client_id to printable before printing
2013-09-14Change sublength to 32 bits. Someone might have more than (sizeof(Friends) / ↵Coren[m]
65536) friends...
2013-09-13Merge remote-tracking branch 'upstream/master' into IntegrationCoren[m]
2013-09-13Merge remote-tracking branch 'upstream/master' into MessengerLoadSaveCoren[m]
2013-09-13State loading/saving: Instead of a blob, segment into sections marked with tags.Coren[m]
Primary rationale: The part that DHT saves changes if IP is expanded to IPv6. To let people keep their friends/name, change the datafile format now, while everybody is still on the same page. Loading/Saving rewritten to allow a part of the file to be incomprehensible to the loading routine. Added a magic cookie at the beginning to mark the file as tox's. Changes in some part of the datafile can be skipped and the remaining parts still be consumed. Allows a wide margin of forward compatibility (like the IP to IPv6 transition, but also e.g. a change in the key format). As long as the file is not completely garbled, the routine will read as much as possible. Only the KEY section is considered mandatory: a malformed key section leads to a negative result. util.*: - holds the driving function which jumps from section to section and calls back with section length and tag (type) Messenger.c,DHT.*: - new loading functions call the util-function with a callback, which subsequently consumes the sections - old routines are kept to fall back onto if the magic cookie at the beginning isn't present - saving is still done in one local routine
2013-09-13Nonce generation changes.irungentoo
Nonces don't need to be random, only different. also random_int now gives same quality random numbers for both NaCl and libsodium.
2013-09-13Merge remote-tracking branch 'upstream/master' into IntegrationCoren[m]