summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-21moved stuff that belongs into ping.[ch] thereCoren[m]
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()
2013-09-21Connection speed ups.irungentoo
2013-09-21Lossless UDP is now suitable for sending files.irungentoo
Added some actual flow control and made send/recieve buffers grow when necessary.
2013-09-21Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Coreirungentoo
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-20Small fix in Lossless UDP.irungentoo
2013-09-21honor the claim of sort_list(), that the result is in anti-intuitive order, ↵Coren[m]
and treat element zero as the furthest
2013-09-20Merge pull request #594 from FullName/nTox.KeepBootstrappingUntilConnectedirungentoo
nTox: keep bootstrap()ping every 10 seconds, until we get a connection...
2013-09-21nTox: keep bootstrap()ping every 10 seconds, until we get a connection ↵Coren[m]
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
2013-09-21Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core.git ↵Coren[m]
into ipv6.yield50%toipv4
2013-09-20Merge pull request #593 from BtbN/win_fixesirungentoo
Fix compilation on windows for ipv6 code
2013-09-21reserving 50%+ for ipv4, take 2Coren[m]
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!)
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-19reserve lower half of client lists for ipv4 for nowCoren[m]
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
2013-09-18Merge pull request #588 from FullName/LoggingPreInitStoringirungentoo
Allow loginit() to be delayed, store loglog() data in intermediate buffer...
2013-09-18Forgot an else.irungentoo
2013-09-18Fixed bad code in nTox.irungentoo
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-17Merge pull request #585 from JFreegman/masterirungentoo
numchats needs to be decremented
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-16Merge pull request #583 from FullName/TestCryptoSlowirungentoo
Make test "endtoend" pass on 'slow' systems
2013-09-16Merge pull request #584 from FullName/MessengerLoadSaveirungentoo
Tests of state loading/saving lead to two fixes for DHT.c and util.c
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-16Make test "endtoend" pass on 'slow' systemsCoren[m]
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
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-16Merge pull request #582 from FullName/UnWallWextrairungentoo
Fix warnings of -Wall -Wextra
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 #577 from FullName/nToxirungentoo
nTox: Save data on friend operations/exit
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-15Merge pull request #581 from stal888/csafixesirungentoo
Fix leaks and null dereferences in net_crypto
2013-09-15Fix leaks and null dereferences in net_cryptoSebastian Stal
2013-09-15Merge remote-tracking branch 'upstream/master' into nToxCoren[m]
2013-09-15more portability fixes.irungentoo
2013-09-15Fixed portability problems.irungentoo
2013-09-15Fixed merge problems.irungentoo