summaryrefslogtreecommitdiff
path: root/other/DHT_bootstrap.c
AgeCommit message (Collapse)Author
2016-01-01Put config-related functions in a separate fileMaxim Biro
bootstrap_node_packets.c was giving an error as it was being included twice and there were no include guards, so part of it was split into bootstrap_node_packets.h.
2015-06-28Removed useless parameter from new_TCP_server()irungentoo
2014-11-29Check if key file was opened correctly in DHT_bootstrap.cirungentoo
Warn the user if it wasn't.
2014-04-23Updated some files so that they could build with latest core.irungentoo
Fixed some issues.
2014-04-16DHT_bootstrap.c now has TCP server functionality enabled.irungentoo
Fixed a regression (same type as last commit).
2014-04-13TCP_client pretty much done?irungentoo
Now next step is integrating it in tox. Added TCP server functionality to bootstrap server (define TCP_RELAY_ENABLED to enable it.)
2014-02-22Renamed dht server to dht nodeMaxim Biro
2014-02-01Added DHT bootstrap server info packets.irungentoo
define DHT_SERVER_EXTRA_PACKETS to enable.
2014-01-20Enabled onion in bootstrap_serverdaemon.irungentoo
2014-01-20Merge branch 'onion'irungentoo
2014-01-19proper windows preprocessor detectionBen Iofel
2014-01-17Onion servers are now DHT ready.irungentoo
2013-10-24Move unix_time(), id_cpy()/id_eq(), is_timeout() to util.*Coren[m]
unix_time(): - returns local value for current epoch - value is updated explicitly with unix_time_update() called at new_DHT()/doMessenger()/do_DHT() is_timeout(): - uses the local value for current epoch id_cpy()/id_eq() => id_copy()/id_equal(): - centralized duplicate definitions - replaced (most) memcpy()/memcmp() of (*, *, CLIENT_ID_SIZE) with id_copy()/id_equal()
2013-10-10Update DHT_bootstrap.cfr0sty
Removed deprecated compilation instructions
2013-09-14astyled everything.irungentoo
2013-09-13Merge remote-tracking branch 'upstream/master' into IntegrationCoren[m]
2013-09-12Patch to allow DHT_bootstrap to also do LAN discovery.Coren[m]
This patch inserts LAN discovery in DHT_bootstrap, allowing it to find clients even if it's run parameterless (and clients don't connect to it directly, e.g. because the port is already bound to a different client). - moves the #define of LAN_DISCOVERY_INTERVAL from Messenger.c to LAN_discovery.h - includes LAN_discovery.h into DHT_bootstrap.c - DHT_bootstrap.c sends and accepts LAN_discovery packets
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-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-11network.c:Coren[m]
- reset errno from failed bind() calls if the last one succeeds DHT_bootstrap.c: - move the perror() output next to where it belongs to
2013-09-11Merge remote-tracking branch 'upstream/master' into IntegrationCoren[m]
2013-09-11cmdline parsing of --ipv4/6 plucked into utilCoren[m]
2013-09-10Fixed building with NaCl.irungentoo
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-09network.h:Coren[m]
- IP: add in_addr_t as part of the union - IP: rename IP to IP4
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-29Correct a lot of the grammar and spelling. Also spent a few hours fixing the ↵pete
comments so they follow a standard.
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-22init_cryptopacket is now called by new_DHT.irungentoo
2013-08-20astyle --options=tools/astylerc -r ./*.{c,h}irungentoo
2013-08-20DHT_bootstrap fixed.irungentoo
2013-08-16Passed everything through astyle.irungentoo
2013-08-10network_registerhandlerslvr
2013-07-29Essentially nTox without the ncurses for Windows. Slightly modified main()Astonex
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-25LicensingSilentSand
Added the GPLv3 license to some files in addition to fixing some comments at the beginning of the files.
2013-07-23Some cleanupMaxim Biro
2013-07-22Print the defined port.irungentoo
2013-07-22Merge pull request #90 from NemDiggers/masterirungentoo
Print port just because
2013-07-22Print port just becauseNemDiggers
2013-07-22Merge pull request #89 from nurupo/masterirungentoo
Some DHT bootstrap improvements
2013-07-22Bootstrap servers now route friend requests.irungentoo
2013-07-22Added saving and loading of keys by defaultMaxim Biro
2013-07-20Fixed header inclusion for WindowsMaxim Biro