irungentoo
747c290269
Fixed DHT_test.c and added some checks.
2013-08-20 15:53:15 -04:00
irungentoo
ac621d96d3
Refactor of core done.
2013-08-20 14:47:32 -04:00
irungentoo
a1c40d753e
More refactoring done.
2013-08-20 12:08:55 -04:00
irungentoo
afa6edecc1
Some refactoring done.
2013-08-19 23:54:28 -04:00
irungentoo
17890b1f61
Realloc apparently doesn't always behave like free() if size is zero.
2013-08-19 07:15:56 -04:00
irungentoo
1207304f0b
Metadata collection prevention part 2 of ???
...
Improved friend request sending.
As a side effect friend requests should now be routed less than before.
See added comments for details.
2013-08-16 18:57:00 -04:00
irungentoo
88ff81d9de
Passed everything through astyle.
2013-08-16 13:11:09 -04:00
irungentoo
095b3c4913
Some DHT hardening done.
...
See comments of added functions for details.
2013-08-16 11:04:28 -04:00
irungentoo
575804d19f
Small improvement to DHT. Useless file removed. Small fix to toxic.
2013-08-15 14:24:32 -04:00
Aaron Lipinski
6b38b704a4
provide access to the close client list
2013-08-15 12:02:56 +12:00
Aaron Lipinski
93b34ef9e3
move client data struct to header file
2013-08-15 12:02:56 +12:00
irungentoo
4330bfbf87
Metadata collection prevention part 1 of ???.
...
Crypto requests packets are packets that can be routed by nodes in the
DHT. In this pull request I have merged both Natping requests and friend
requests into one common packet (Crypto request packets). Both these
packets should now only be distinguishable by the size of the data in
them to an outside observer for an example on how to send and recieve
data with these packets see: friend_requests.c
Note that these packets are prefixed with id 32 (friend request packets)
which means this change is compatible with the currently running DHT
bootstrap servers.
Also changed small thing in DHT_test.c
2013-08-14 18:26:00 -04:00
irungentoo
5909a13ba4
Add friend now fails if it already is in DHT.
2013-08-14 10:26:02 -04:00
slvr
7f27fcaf37
tabs -> spaces
2013-08-10 11:27:36 +01:00
slvr
75c2dd4cb9
fixed typo: handle_ping_request -> handle_ping_response
2013-08-10 01:03:30 +01:00
slvr
6052b1f119
network_registerhandler
2013-08-10 00:43:50 +01:00
Christian Brueffer
0b8fa72914
Fix a recurring typo in code and comments.
2013-08-09 14:01:35 +02:00
irungentoo
39a213a58c
Merge pull request #361 from plutooo/master
...
core: Moved handle ping packets to ping.c
2013-08-06 13:41:04 -07:00
plutooo
9e0ee5b7df
core: Moved handle ping packets to ping.c
2013-08-06 13:09:14 -07:00
irungentoo
fc5a2f53df
Merge branch 'master' of https://github.com/plutooo/ProjectTox-Core into plutooo-master
...
Conflicts:
core/ping.c
core/util.c
2013-08-06 13:53:38 -04:00
plutooo
99d9ecf74c
core: Move send ping packets functions to ping.c
2013-08-06 08:51:37 -07:00
irungentoo
c9a597b794
Merge branch 'master' of https://github.com/plutooo/ProjectTox-Core into plutooo-master
2013-08-05 18:48:34 -04:00
Nick ODell
9364db9eff
Fix bug where handle_NATping wouldn't perform bounds checking
2013-08-05 14:46:45 -06:00
plutooo
071ac46308
core: Rewrote ping-module, better performance and cleaner code.
2013-08-05 12:51:58 -07:00
Florian Hahn
5617bf0bf1
Use void for functions with no parameters
2013-08-05 15:57:17 +02:00
Florian Hahn
7567e0a1c4
Make private functions in core/DHT.c static
2013-08-04 23:05:43 +02:00
Jae Kwon
158751cb2d
various fixes for first time user
...
* added linking to libsodium
* fixed links to docs to point to wiki
2013-08-03 14:46:52 -07:00
plutooo
e5d2c219af
DHT: added id_equal(), ipport_equal(), is_timeout()
2013-08-03 08:32:09 -07:00
irungentoo
7b46b04ce7
Time is better as an unsigned variable.
2013-08-02 15:57:53 -04:00
irungentoo
346e4b28ca
Fixed problems.
2013-08-02 15:28:48 -04:00
irungentoo
b9176974a8
Merge branch 'master' into Jeffail-master
...
Conflicts:
core/DHT.c
2013-08-02 10:41:03 -04:00
Andreas Schneider
20951dda7d
DHT: Fix return value of time().
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Signed-off-by: irungentoo <irungentoo@gmail.com>
2013-08-02 09:41:22 -04:00
Jeffail
67efb67f96
Refactored DHT.c from end of NAT punching to EOF
2013-08-02 10:59:09 +01:00
Jeffail
bcf36e8115
Refactored DHT.c, all of NAT punching functions (line 1217
2013-08-02 10:56:10 +01:00
Jeffail
1708dc1a88
Refactored DHT.c down to line 1048 (beginning of NAT)
2013-08-02 10:53:28 +01:00
Jeffail
f9816b43f3
Refactored DHT.c down to line 881
2013-08-02 10:49:54 +01:00
Jeffail
cef8a3e4e5
Refactored DHT.c down to line 779
2013-08-02 10:47:32 +01:00
Jeffail
a5a1f917ab
Refactored DHT.c down to line 567
2013-08-02 10:43:00 +01:00
Jeffail
e7f74555ea
Refactored DHT.c down to line 367
2013-08-02 10:39:04 +01:00
Jeffail
fda296e41d
Refactored client/friend helper functions (down to line 274)
2013-08-02 10:32:25 +01:00
Jeffail
4f2146c085
Back to old methods, reordered the structs, defines, and global variables to the top, should be no changes to binary
2013-08-01 22:53:50 +01:00
Jeffail
ab8f549c65
Refactored most of DHT.c, added local vim config
2013-08-01 20:45:21 +01:00
irungentoo
0eb429e458
Slightly improved hole punching in the DHT.
2013-07-28 17:10:55 -04:00
irungentoo
14b43651c1
Ran the code through: astyle --style=linux
2013-07-27 08:43:36 -04:00
nfkd
11e18d71c9
Update DHT.c
2013-07-26 22:42:33 -03:00
nfkd
c9063cf24a
Update DHT.c
2013-07-26 21:54:02 -03:00
nfkd
d62aec7db5
Fix braces and a few whitespaces
2013-07-26 20:18:45 -03:00
SilentSand
1577a1eb61
Minor screwup fixed
...
I sure wish it was easier to compile on Windows.
2013-07-26 04:08:39 -04:00
SilentSand
59b34e423b
Formatting.
...
Many stylistic changes, mostly formatting code more closely to the
coding style.
2013-07-26 04:02:17 -04:00
SilentSand
f377eb9ca2
Licensing
...
Added the GPLv3 license to some files in addition to fixing some
comments at the beginning of the files.
2013-07-25 21:45:56 -04:00