summaryrefslogtreecommitdiff
path: root/testing/Messenger_test.c
AgeCommit message (Collapse)Author
2014-03-18Merge branch 'api-fix'irungentoo
Main changes: 1. Strings no longer need to be NULL terminated. 2. tox_get_friend_id is now named tox_get_friend_number. 3. The friend request callback function is now (Tox *tox, uint8_t *, uint8_t *, uint16_t, void *), the Tox object pointer has been added to it.
2014-03-16Friend request callback now contains the Tox object.irungentoo
2014-02-25bound checking in messenger testingseshagiriprabhu
2014-02-09Astyled and removed some useless files.irungentoo
2014-02-09Fixed memory leaks and removed repeated codeMaxim Biro
2014-01-19proper windows preprocessor detectionBen Iofel
2013-10-23Code cleanups.irungentoo
Fixed some tests.
2013-09-27Permit -Wshadow as useful warning.Coren[m]
2013-09-14astyled everything.irungentoo
2013-09-11tox.h, DHT.h:Coren[m]
- tox_bootstrap_ex(), DHT_bootstrap_ex() renamed to tox_bootstrap_from_address(), DHT_bootstrap_from_address() - (handle_)sendnodes_ex() renamed to (handle_)sendnodes_ipv6() - only sending sendnodes_ipv6() if we're actually IPv6 enabled - changed comments to conform better nTox.c, Messenger_text.c, DHT_test.c, DHT_bootstrap.c: - fallout from *_ex() to *_from_address() DHT_bootstrap.c: - corrected a potentially wrong info message util.c: - fixed logfile name: now (funcptr) => now() (number) network.c: - addead comment about the necessity of bind() to succeed auto_test/messenger_test.c: - defaulting ipv6enabled to TOX_ENABLE_IPV6_DEFAULT LAN_discovery.c: - slight cleanup and comments for clarity
2013-09-11cleanup TravisCI warnings (missing exports/extraneous args to printf)Coren[m]
2013-09-11toxcore/util.h:Coren[m]
- moved cmdline_parsefor_ipv46() to testing/misc_tools.c
2013-09-11cmdline parsing:Coren[m]
- add missing includes (autobuild warnings)
2013-09-11cmdline parsing of --ipv4/6 plucked into utilCoren[m]
2013-09-10tox.*, DHT.*:Coren[m]
- return to the caller if the string could be resolved into an IP other/DHT_bootstrap.c, testing/*_test.c, testing/nTox.c: - parse cmdline for --ipv4/--ipv6 switch to allow user a choice util.h: - proper old-style C-comment
2013-09-10big push, putting all the infrastructure in place behind TOX_ENABLE_IPV6Coren[m]
2013-09-09tox.*, Messenger.*:Coren[m]
- initialisation: argument added to enable/disable ipv6 as socket Messenger_test.c: - initialisation: ipv4 hardcoded for now - delegating IP resolution to DHT_bootstrap_ex()
2013-09-06Allow to build vs nacl instead of libsodiumJin^eLD
By default libsodium is used. Only if --enable-nacl is specified, then nacl will be used instead of libsodium. Pass locations of nacl headers and libraries by using the following options: --with-nacl-headers=/home/me/somewhere/nacl-20110221/build/469/include/amd64/ --with-nacl-libs=/home/me/somewhere/nacl-20110221/build/469/lib/amd64/
2013-08-30Fixed warnings and moved hex_string_to_bin to testing/irungentoo
2013-08-30Merge branch 'udp_connections' of https://github.com/vx-k/ProjectTox-Core ↵irungentoo
into vx-k-udp_connections
2013-08-30Fixed build errors.Kostya
2013-08-29Moved misc_tools from testing to toxcore.Anony Moose
2013-08-24Rename core directory because of autoconf name clashjin-eld
While doing the checks configure might generate "core" files and will then try to remove them. Having a "core" directory generates an error while runing the configure script. There's no workaround but to rename the core directory.
2013-08-20Use the messenger's dht instead of creating a new oneSimon Levermann
2013-08-20Fix Messenger_testSimon Levermann
2013-08-16Passed everything through astyle.irungentoo
2013-08-13Updated some files.irungentoo
2013-08-12Added support for userdata in callbacksalek900
2013-08-12Messenger refactor - redid work from pull request 79Chris Hall
Moves static state out of Messenger.c and into a Messenger struct Purely stylistic, no functional changes were made. This commit also changed all the callers of Messenger as they now have to pass an instance of the Messenger struct to messenger functions. Also removed some uses of the 'static' keyword at the beginning of function definitions when the function was already declared static, as these caused gcc to whine.
2013-08-09Fix a recurring typo in code and comments.Christian Brueffer
2013-08-07Actually use write_resultSimon Levermann
2013-08-07Don't ignore the result of fwrite. Since we're building with -Wall and ↵Simon Levermann
-Werror, this causes compile failures.
2013-07-27[fixed]created new files misc_tools.(c|h) and moved hex_string_to_bin() there.Konstantin Kowalski
2013-07-26took out several strlen() calls out of the loop; replaced int's with size_t ↵Konstantin Kowalski
where needed
2013-07-26Formatting.SilentSand
Many stylistic changes, mostly formatting code more closely to the coding style.
2013-07-25LicensingSilentSand
Added the GPLv3 license to some files in addition to fixing some comments at the beginning of the files.
2013-07-18Added nicknames and nickname syncing.irungentoo
2013-07-17Bug fixed, Loading and saving added to core.irungentoo
2013-07-12First part of DHT hardening done.irungentoo
Added crypto to the DHT communications. This defeats completely the first attack mentioned in docs/DHT_hardening. Also updated the build system to build the latest test (it links it with libsodium)
2013-07-10Per friend request data added.irungentoo
2013-07-09cast parameters to unsigned char and terminal localhost regex without domainjuryben-fedora
2013-07-09Delete friends function now works and some other changes.irungentoo
2013-07-09Added comment block to Messenger test.irungentoo
2013-07-09Basic IM messenger backend pretty much done (You can start the GUI)irungentoo
And a couple of fixes to the other parts.
2013-07-08Some work done on the messenger part.irungentoo