Commit Graph

1821 Commits

Author SHA1 Message Date
irungentoo
370e36815e Merge pull request #596 from FullName/ping.moveandclean
moved stuff that belongs into ping.[ch] there
2013-09-24 17:51:23 -07:00
irungentoo
7c300370b0 Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core 2013-09-24 18:22:18 -04:00
irungentoo
4a3bed3e85 Possibly fixed the weird disconnecting/reconnecting bug. 2013-09-24 18:15:15 -04:00
irungentoo
1994c3cd89 Possible bug fixed. 2013-09-24 09:57:49 -04:00
irungentoo
05a3851e43 Fixed windows build. 2013-09-24 07:56:06 -04:00
irungentoo
b0149318fa Merge pull request #604 from JFreegman/master
made setfriendname() part of public api
2013-09-24 03:49:06 -07:00
Jfreegman
23e03b0ba9 check length of name 2013-09-23 15:40:25 -04:00
irungentoo
5d25bc100c Fixed typo. 2013-09-23 13:45:51 -04:00
Jfreegman
c4702985a5 made setfriendname part of public api 2013-09-23 04:30:24 -04:00
irungentoo
47aa8b0505 Merge pull request #603 from stal888/patch-4
Fix bug.
2013-09-22 17:50:35 -07:00
stal
bcba9b957b Fix bug.
This makes it build on OS X again...
2013-09-22 17:49:14 -07:00
irungentoo
59170c7d01 Merge pull request #602 from davidgumberg/groupchat
A markdown-formatted file had the .txt extension
2013-09-22 15:59:02 -07:00
David Gumberg
7d1fb4bef0 A markdown-formatted file had the .txt extension 2013-09-22 14:15:09 -07:00
irungentoo
c43ad78ce7 Merge pull request #601 from maksqwe/master
Fix typo. "if (yesno != 0 || yesno != 1)" always true
2013-09-22 13:16:16 -07:00
Maks
f4163e324b Fix typo. "if (yesno != 0 || yesno != 1)" always true 2013-09-22 22:36:45 +03:00
irungentoo
bb6566e436 Astyled network.c 2013-09-22 14:37:04 -04:00
irungentoo
ed0071bcbc Merge branch 'win_inetpton' of https://github.com/BtbN/ProjectTox-Core 2013-09-22 14:29:37 -04:00
BtbN
a7eb9b2c34 Fix inet_pton/ntop on win32 2013-09-22 20:26:39 +02:00
irungentoo
757c958132 Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core 2013-09-22 14:26:24 -04:00
irungentoo
0d54a675ec Removed unused variables. 2013-09-22 14:25:52 -04:00
irungentoo
ba169b7c21 Keep the code consistent. 2013-09-22 14:24:38 -04:00
irungentoo
8b5d9dc13e Merge branch 'patch-9001' of https://github.com/stal888/ProjectTox-Core into stal888-patch-9001 2013-09-22 14:14:53 -04:00
irungentoo
115cb8af02 Merge pull request #600 from Jman012/master
Fixed a bug or two.
2013-09-22 10:53:00 -07:00
irungentoo
64150f4bde Merge pull request #590 from FullName/ipv6.yield50%toipv4
reserve half of client lists for ipv4 (take #2)
2013-09-22 09:17:16 -07:00
irungentoo
83c6e9dd35 Fixed the connection bug and cleaned up some stuff. 2013-09-22 11:08:23 -04:00
Jman012
bb0cd7da0c Fixed a bug or two.
Added breaks on the new packet handlers in doFriends for the switch statement, and added a default.
2013-09-21 23:50:14 -07:00
irungentoo
1cc47101fe Fix bug. 2013-09-21 23:15:40 -04:00
irungentoo
05477f77d3 Fixed bug. 2013-09-21 22:57:28 -04:00
irungentoo
e36f6c46d1 Fixed bug. 2013-09-21 19:27:53 -04:00
Sebastian Stal
cb68be00b0 Change tox_get_friendlist API.
tox_get_friendlist() -> tox_copy_friendlist().
You now have to allocate your own memory to pass into tox_copy_friendlist.
To help with this, tox_count_friendlist() has been added to get the length
of the friend list.
2013-09-21 14:47:30 -07:00
Coren[m]
88678e584a moved stuff that belongs into ping.[ch] there
DHT.*, ping.*:
- moved stuff from struct DHT into struct PING: toping, last_toping
- moved functions add_toping(), do_toping()
- made id_closest() publicly accessible
- send_ping_request(): killed (Net_Crypto *c) parameter in favor of copying it into (PING *) on new_ping()

group_chats.c:
- killed local 1:1 copy in favor of DHT.c::id_closest()
2013-09-21 15:39:15 +02:00
irungentoo
a6abf007cb Connection speed ups. 2013-09-21 09:33:44 -04:00
irungentoo
3e4599e33a Lossless UDP is now suitable for sending files.
Added some actual flow control and made send/recieve buffers grow when
necessary.
2013-09-21 09:03:54 -04:00
irungentoo
112c8dadf9 Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core 2013-09-21 08:55:14 -04:00
irungentoo
a07162bf92 Merge pull request #595 from FullName/MessengerLoadSave
Thou shalt not take singular commands after an if into #ifdef DEBUG...
2013-09-21 04:24:40 -07:00
Coren[m]
f56a8529a3 Thou shalt not take singular commands after an if into #ifdef DEBUG...
toxcore/Messenger.c:
- Messenger_load_old(): brackets around an #ifdef'ed line to avoid data pointer being only pushed forward properly in the error case
2013-09-21 10:07:16 +02:00
irungentoo
63126241eb Small fix in Lossless UDP. 2013-09-20 22:13:59 -04:00
Coren[m]
4e76ca432f honor the claim of sort_list(), that the result is in anti-intuitive order, and treat element zero as the furthest 2013-09-21 03:13:44 +02:00
irungentoo
892c7aa266 Merge pull request #594 from FullName/nTox.KeepBootstrappingUntilConnected
nTox: keep bootstrap()ping every 10 seconds, until we get a connection...
2013-09-20 17:28:46 -07:00
Coren[m]
330c1bee5c nTox: keep bootstrap()ping every 10 seconds, until we get a connection running (the initial one might get lost, it IS done via UDP after all)
nTox.c:
- main(): keep calling tox_bootstrap_from_address() every 10 seconds, until the connection is established
2013-09-21 02:02:27 +02:00
Coren[m]
89005f1701 Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core.git into ipv6.yield50%toipv4 2013-09-21 01:27:53 +02:00
irungentoo
01ec9d6e7b Merge pull request #593 from BtbN/win_fixes
Fix compilation on windows for ipv6 code
2013-09-20 16:27:24 -07:00
Coren[m]
13bd6aab18 reserving 50%+ for ipv4, take 2
DHT.c:
- we have to actually count the number of addresses in the field, because sort_list() will move the stuff around
- improved replace_good() substantially by throwing away the "furthest" client_id, not the one just a bit worse than the new one (but better than all the later ones in the field!)
2013-09-21 01:22:42 +02:00
BtbN
b9306d6d06 Fix compilation on windows for ipv6 code 2013-09-21 01:10:23 +02:00
irungentoo
20b6900fb1 Fixed bug. 2013-09-20 11:33:53 -04:00
irungentoo
53397f6077 Small fix in Lossless UDP. 2013-09-20 10:02:16 -04:00
irungentoo
524af7ef07 Increased the size of the UDP buffers. 2013-09-20 08:25:01 -04:00
irungentoo
7e5da03637 Fixed bug in Lossless UDP. 2013-09-19 10:18:43 -04:00
irungentoo
993554bdf6 Fixed bug in Lossless UDP. 2013-09-19 09:46:55 -04:00
Coren[m]
f10c94a17a reserve lower half of client lists for ipv4 for now
also rename client_in_list() to client_or_ip_port_in_list(), it also checks for an identical ip/port and replaces the client_id, recycling the entry

DHT.c:
- rename client_in_list() to client_or_ip_port_in_list()
- replace_bad(), replace_good(): if IPv6, only insert into the upper half of the given list
- addto_lists(): convert ipv4-in-ipv6 mapped to ipv4
2013-09-19 11:06:04 +02:00