irungentoo
7092303823
Added simple test for tox.
2013-12-17 18:55:28 -05:00
irungentoo
15d17b0a3c
Astyled the code.
2013-12-16 20:49:24 -05:00
irungentoo
24974ef816
Code cleanups.
...
No functionality changed.
2013-12-15 18:57:10 -05:00
irungentoo
e05120f74e
Fixed comment.
2013-12-14 12:23:25 -05:00
Jfreegman
4391a86556
small fix
2013-12-13 20:38:01 -05:00
Jfreegman
b92cdcf184
added groupchat actions
2013-12-13 20:27:25 -05:00
irungentoo
4a5136f431
Merge pull request #678 from FullName/retipp-fix
...
Fix a code cleanup.
2013-12-13 11:40:17 -08:00
irungentoo
dfd46a040a
Merge branch 'assoc-refresh-distant-data' of https://github.com/FullName/ProjectTox-Core into FullName-assoc-refresh-distant-data
2013-12-12 21:51:17 -05:00
irungentoo
cbee548b0a
Fixed arm bug.
2013-12-12 13:49:49 -05:00
irungentoo
08890a2004
Fixed arm bug.
2013-12-12 11:26:19 -05:00
Coren[m]
9a5a5fad87
Fix a code cleanup.
...
DHT.c:
- get_close_nodes():
- allow two 'indirect' nodes ('indirect' as in distant from us and therefore not tested regularly, "bad")
- be consequent when testing for NULLed results, pack nodes_list dense
- (logging) dump number of found entries from assoc
- returnedip_ports():
- fix code cleanup, the entry to be added is about the node we were told, not about the node who told us
assoc.c:
- Assoc_get_close_entries(): break from loops as soon as a marking-invalid-node is hit
2013-12-11 20:00:42 +01:00
irungentoo
f3212ab33f
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core
2013-12-11 07:13:29 -05:00
irungentoo
d3ccc00244
Increased some intervals/timeouts to lower network usage.
2013-12-11 07:12:55 -05:00
irungentoo
e0a7565b53
Merge pull request #677 from aitjcize/api-name
...
More API consistent fix.
2013-12-10 12:00:43 -08:00
AZ Huang
2d841fb791
More API consistent fix.
2013-12-10 17:54:04 +08:00
irungentoo
563664d1a5
Fixed possible issue.
2013-12-09 09:30:35 -05:00
irungentoo
d5092e7cf8
Cleaned up and fixed various things.
2013-12-08 19:48:18 -05:00
irungentoo
48c50b5cef
Send groupchat ips like DHT ones.
2013-12-08 18:23:30 -05:00
irungentoo
a4968bdbc5
Compatibility fixes.
...
AF_INET/AF_INET6 can vary across devices, we introduce TOX_AF_INET and
TOX_AF_INET6 to fix this.
2013-12-08 18:15:30 -05:00
Coren[m]
ad9d20c08b
do_Assoc(): keep the data of the buckets somewhat current
2013-12-08 05:43:24 +01:00
irungentoo
606c2c12ab
Small fixes.
2013-12-07 21:13:07 -05:00
irungentoo
1c45e59938
Added/updated some basic docs and cleaned up some things.
2013-12-07 19:06:41 -05:00
irungentoo
d078c5e9c2
Try to replace not tested/possibly bad nodes before good nodes.
2013-12-07 17:44:30 -05:00
irungentoo
7cd43ecc76
Merge branch 'master' into harden
2013-12-06 22:51:17 -05:00
irungentoo
4207b73ca9
Merge pull request #674 from FullName/RFC6598
...
Shared address space for stacking NAT (CGN) is LAN.
2013-12-05 16:43:03 -08:00
irungentoo
45785ffed0
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core
2013-12-05 19:40:32 -05:00
irungentoo
2aae893b6d
All nodes returned must be good.
2013-12-05 19:28:13 -05:00
irungentoo
245a1511e6
Added a assoc test.
...
Changed default assoc so that it behaves correctly.
2013-12-05 19:25:56 -05:00
Coren[m]
c764fc16be
Shared address space for stacking NAT (CGN) is, just like 'regular' private address space, LAN.
2013-12-05 20:47:03 +01:00
irungentoo
3d2707748c
Merge branch 'sendnodes-with-assoc' of https://github.com/FullName/ProjectTox-Core into FullName-sendnodes-with-assoc
2013-12-05 12:34:14 -05:00
irungentoo
94df395fab
Merge pull request #671 from palistov/do-friends-cleanup
...
Clean up do_friends function
2013-12-04 14:55:25 -08:00
Paul Holden
bfce8a9d21
Messenger: Fix compile issue with check_friend_request_timed_out
2013-12-04 11:48:27 -08:00
irungentoo
e6a1754053
Merge pull request #672 from alexandervdm/master
...
fix naming inconsistency in tox.h
2013-12-03 14:59:49 -08:00
Coren[m]
110a8e889c
get_close_nodes(): make use of assoc to find some really close nodes
...
DHT.c:
- get_close_nodes(): use assoc to find nodes for the requested reference id
- handle_sendnodes*(): set a proper timestamp for "heard" nodes
assoc.*:
- expand Assoc_close_entries by flags for additional restrictions for search
- Assoc_get_close_entries(): honor the new flags
- new_Assoc() prime handling: min. prime is now 5 instead of 3, and up to 25 is handled directly
- Assoc_status(): added address family for seen/heard, print of hash is now fixed width
2013-12-03 22:36:02 +01:00
alexandervdm
3f2d815fab
fix naming inconsistency in tox.h
2013-12-03 14:54:46 +01:00
irungentoo
632e692577
Merge pull request #670 from FullName/log-match-m_friend-and-dht_friend
...
Logging: Messenger's "Friend" and DHT's "DHT_Friend" don't necessarily use the same indices.
2013-12-02 11:23:45 -08:00
irungentoo
b3d55442b6
Don't hole punch when we are connected.
2013-12-02 13:07:11 -05:00
irungentoo
d87a13ce94
Fixed bug with hole punching.
2013-12-02 12:41:56 -05:00
Coren[m]
222a28e068
Logging: Messenger's "Friend" and DHT's "DHT_Friend" don't necessarily use the same indices.
...
Match the indices beforehand and then log the matched up data.
Also log unmatched "DHT_Friend"s minimally.
2013-12-02 18:21:02 +01:00
irungentoo
b6a5aa38c6
Merge pull request #669 from alexandervdm/master
...
fix 'typedef redefinition' build errors on older gcc versions
2013-12-02 07:03:27 -08:00
Paul Holden
c00970eaf7
Messenger: New function to check & handle timed-out friend requests
2013-12-02 03:31:48 -08:00
alexandervdm
a93d76a958
fix 'typedef redefinition' build errors on older gcc versions
...
building toxcore
2013-12-01 21:06:20 +01:00
irungentoo
3c16b0c035
Tweaked hole punching a bit.
2013-12-01 09:47:27 -05:00
irungentoo
fcc1463fe1
The stuff in do_DHT only need to be run once per second.
...
Should lower CPU usage by a bit.
2013-11-30 21:52:50 -05:00
irungentoo
2a75abb494
Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core
2013-11-29 12:58:41 -05:00
irungentoo
5e4f3ce07f
Add sodium_init() function to startup.
2013-11-29 12:57:31 -05:00
irungentoo
c8985d9d47
Merge pull request #668 from aitjcize/api-name
...
Fix API name consistency.
2013-11-29 07:47:09 -08:00
AZ Huang
2cb7f24132
Fix typo.
2013-11-29 23:38:06 +08:00
AZ Huang
8419d3469a
Fix API name consistency.
2013-11-29 23:12:07 +08:00
irungentoo
6e691a3c34
Fixed possible issue.
2013-11-29 10:03:05 -05:00