summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-10-05Broken *_wait() into *_wait_prepare() and *_wait_execute()Coren[m]
To allow the actual waiting to run without any locking, split it into preparing the data it uses and the execution of the wait. The caller must provide with the buffer to store whatever data it requires to wait. Completely eliminates any reliance on the existence of anything but that data in the actual wait routine. Also fixed a few argument type warnings inside LOGGING.
2013-10-03Only add write-ready to select() if we have packets queuedCoren[m]
Lossless_UDP.*: - sendqueue_total() sums sendqueue() across all connections network.*, Messenger.c: - sendqueue_total() is collected and then used in deciding if we select() on write-readiness
2013-10-02Add tox_wait() for socket, allow tox.h include in tox.cCoren[m]
tox.*, Messenger.*, network.*; - new function tox_wait() => waitMessenger() => networking_wait(): - waits for a given amount of time for any sort of socket activity - mustn't change anything inside, mustn't poll or do other stuff - the point is to be able to call this asynchronously from a second thread - the outside shall follow up with an immediate tox_do() when there's socket activity tox.*: - allow inclusion of tox.h into tox.c, ensuring that the outside interface and the internal always match util.c: - squished a few warnings about questionable format strings
2013-09-30Speeded up/fixed NAT hole punching and peer finding.irungentoo
2013-09-29Updated TODO.irungentoo
2013-09-29Fixed connection bug.irungentoo
2013-09-28Fixed possible problem.irungentoo
2013-09-28Potential DoS fixed.irungentoo
2013-09-28Fixed possible bug.irungentoo
2013-09-28Connection bug fixed.irungentoo
2013-09-28Merge branch 'FullName-ClientData46'irungentoo
2013-09-28Fixed small issue.irungentoo
2013-09-28Behaviour with LAN ips is now better, also fixed possible bug.irungentoo
2013-09-28LAN ips can be sent to LAN ips.irungentoo
2013-09-28friend_iplist and route_tofriend behaviour fixes.irungentoo
2013-09-28Merge pull request #608 from Nominate/patch-5irungentoo
Update INSTALL.md
2013-09-28Update INSTALL.mdNominate
Included git in the apt-get so that new users can use the necessary git clone command.
2013-09-27Fixed possible problem.irungentoo
2013-09-27Astyled the code.irungentoo
2013-09-27Merge branch 'ClientData46' of https://github.com/FullName/ProjectTox-Core ↵irungentoo
into FullName-ClientData46
2013-09-27don't lose globally valid addresses for locally valid onesCoren[m]
2013-09-27Logging loop corrected.Coren[m]
2013-09-27minimalistic increase in elegance ;)Coren[m]
DHT.c: - loops over assoc4/6 slightly more elegant
2013-09-27Merge pull request #606 from FullName/Permit.Wshadowirungentoo
Permit -Wshadow as useful warning.
2013-09-27Permit -Wshadow as useful warning.Coren[m]
2013-09-27expanded Client_data to hold two addresses (IPv4, IPv6) instead of oneCoren[m]
Compilerflag: CLIENT_ONETOONE_IP (to define in DHT.h, default unset i.e. NEW case: two addresses) Every function in DHT{_test}.c working on Client_data has been rewritten to store IPv4 addresses in assoc4, IPv6 addresses in assoc6. Loading/Storing of states defined with other compiler switch is transparently adjusting to the differences. DHT.h, DHT.c: - introduction and handling of the structure changes DHT_test.c, Messenger.c: - logging adapted to new structures util.h: - LOGGING isn't undefined per default anymore
2013-09-25Possible bug fixed.irungentoo
2013-09-25Fixed bug where hole punching was attempted even though theirungentoo
clients were connected. Increased the number of ports tried per interval of time. Also astyled the files.
2013-09-25Fixed possible bug.irungentoo
2013-09-24Merge pull request #596 from FullName/ping.moveandcleanirungentoo
moved stuff that belongs into ping.[ch] there
2013-09-24Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Coreirungentoo
2013-09-24Possibly fixed the weird disconnecting/reconnecting bug.irungentoo
2013-09-24Possible bug fixed.irungentoo
2013-09-24Fixed windows build.irungentoo
2013-09-24Merge pull request #604 from JFreegman/masterirungentoo
made setfriendname() part of public api
2013-09-23check length of nameJfreegman
2013-09-23Fixed typo.irungentoo
2013-09-23made setfriendname part of public apiJfreegman
2013-09-22Merge pull request #603 from stal888/patch-4irungentoo
Fix bug.
2013-09-22Fix bug.stal
This makes it build on OS X again...
2013-09-22Merge pull request #602 from davidgumberg/groupchatirungentoo
A markdown-formatted file had the .txt extension
2013-09-22A markdown-formatted file had the .txt extensionDavid Gumberg
2013-09-22Merge pull request #601 from maksqwe/masterirungentoo
Fix typo. "if (yesno != 0 || yesno != 1)" always true
2013-09-22Fix typo. "if (yesno != 0 || yesno != 1)" always trueMaks
2013-09-22Astyled network.cirungentoo
2013-09-22Merge branch 'win_inetpton' of https://github.com/BtbN/ProjectTox-Coreirungentoo
2013-09-22Fix inet_pton/ntop on win32BtbN
2013-09-22Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Coreirungentoo
2013-09-22Removed unused variables.irungentoo
2013-09-22Keep the code consistent.irungentoo