Commit Graph

2630 Commits

Author SHA1 Message Date
fr0sty
b0d2328968 Update DHT_bootstrap.c
Removed deprecated compilation instructions
2013-10-10 16:29:40 -04:00
irungentoo
f5179afe4c Merge pull request #616 from naxuroqa/master
fix for missing EAGAIN definition on windows
2013-10-09 05:43:07 -07:00
naxuroqa
a60ffa9591 fix for missing EAGAIN definition on windows 2013-10-09 10:49:27 +02:00
irungentoo
4aa507b664 Added function to get the piece size for sending files. 2013-10-08 18:55:35 -04:00
irungentoo
3658c372a4 Merge pull request #609 from FullName/wait
Add tox_wait() for socket, allow tox.h include in tox.c
2013-10-07 14:13:07 -07:00
irungentoo
9d6c52cec8 Merge pull request #613 from BtbN/compile_pure
Some configuration/build fixes
2013-10-06 17:19:34 -07:00
BtbN
8d40ddf417 Some configuration/build fixes, so building basicaly everything else than the library can be disabled 2013-10-07 02:01:16 +02:00
irungentoo
94691bfe0e Code cleanups. 2013-10-06 17:44:31 -04:00
irungentoo
6ef2b5ead6 Code cleanups. 2013-10-06 17:40:23 -04:00
Coren[m]
24e4a70105 Oops. Didn't pass along the results from inside to outside... 2013-10-06 17:22:40 +02:00
Coren[m]
40e020b958 Merge remote-tracking branch 'upstream/master' into wait: replace void *tox with Tox *tox in tox.c (which now includes the declarations from tox.h) 2013-10-06 16:53:13 +02:00
Coren[m]
355c55f745 sendqueue_length no longer determines if we check for socket-can-write, but sendpacket() sets a timestamp if it happened
network.*:
- sendpacket(): checks result and on EAGAIN, stores time of this event
- networking_wait_prepare(): uses the time if set to check up to 500ms later for the socket to be writeable again
- networking_wait_cleanup(): clears the time if the socket was writeable
- fixed some accidental tabs

Messenger.*, tox.*:
- pass-through functions to reach networking_wait_cleanup()
- fixed some accidental tabs
2013-10-06 16:37:02 +02:00
irungentoo
97f192969c Fixed warnings. 2013-10-05 11:24:30 -04:00
irungentoo
ac117322a9 Tox sync added.
Tox sync is a proof of concept bittorrent sync inspired application that
uses tox to sync the contents of two folders.

Currently only works on POSIX compilant operating systems.
2013-10-05 11:14:06 -04:00
irungentoo
b2c5e16132 Fixed file sending bug. 2013-10-05 10:55:28 -04:00
irungentoo
b0f9e6db6f m_addfriend_norequest now prevents you from adding your own id as friend. 2013-10-05 09:09:28 -04:00
Coren[m]
1331a32223 Broken *_wait() into *_wait_prepare() and *_wait_execute()
To allow the actual waiting to run without any locking, split it into preparing the data it uses and the execution of the wait.
The caller must provide with the buffer to store whatever data it requires to wait.
Completely eliminates any reliance on the existence of anything but that data in the actual wait routine.

Also fixed a few argument type warnings inside LOGGING.
2013-10-05 12:53:54 +02:00
irungentoo
edf799133c Fixed some possible bugs. 2013-10-04 11:20:47 -04:00
irungentoo
378a87d523 Code cleanups. 2013-10-03 12:42:29 -04:00
Coren[m]
1f92ee274d Only add write-ready to select() if we have packets queued
Lossless_UDP.*:
- sendqueue_total() sums sendqueue() across all connections

network.*, Messenger.c:
- sendqueue_total() is collected and then used in deciding if we select() on write-readiness
2013-10-03 12:10:29 +02:00
irungentoo
c014cebbe5 Merge branch 'file-transfers'
File transfers are now working and in public api.
2013-10-02 20:53:48 -04:00
irungentoo
fbd494a8b4 File sending added to public api. 2013-10-02 20:53:24 -04:00
irungentoo
8a77211b43 Merge branch 'file-transfers' of https://github.com/irungentoo/ProjectTox-Core into file-transfers 2013-10-02 20:20:33 -04:00
irungentoo
6425cf3b53 File control packets can now be used by the person sending the file. 2013-10-02 20:08:14 -04:00
Coren[m]
2af0d43ce8 Add tox_wait() for socket, allow tox.h include in tox.c
tox.*, Messenger.*, network.*;
- new function tox_wait() => waitMessenger() => networking_wait():
  - waits for a given amount of time for any sort of socket activity
  - mustn't change anything inside, mustn't poll or do other stuff
    - the point is to be able to call this asynchronously from a second thread
    - the outside shall follow up with an immediate tox_do() when there's socket activity

tox.*:
- allow inclusion of tox.h into tox.c, ensuring that the outside interface and the internal always match

util.c:
- squished a few warnings about questionable format strings
2013-10-02 16:38:54 +02:00
irungentoo
0fb3c9eeed Max length of filenames is now 255 bytes. 2013-10-02 10:28:08 -04:00
irungentoo
2467e6d592 Fixed bug. 2013-10-02 09:42:28 -04:00
irungentoo
efa3c79699 Removed useless ifdefs. 2013-10-01 19:01:15 -04:00
irungentoo
6182af8449 nTox updated with changes in core, some file sending things fixes. 2013-10-01 18:59:33 -04:00
irungentoo
6dbc8a5496 Core now takes better care of file transfers. 2013-10-01 16:48:32 -04:00
irungentoo
766cff692f File sending now works on bad wireless connections. 2013-10-01 11:44:27 -04:00
irungentoo
b9bffced7c Speeded up/fixed NAT hole punching and peer finding. 2013-09-30 17:20:35 -04:00
irungentoo
3c7de51ba5 Basic ntox file sending. 2013-09-30 13:13:49 -04:00
irungentoo
a0f94267ad File sending. 2013-09-30 09:35:17 -04:00
irungentoo
01ddd3249c Updated TODO. 2013-09-29 11:40:42 -04:00
irungentoo
9f1080f8b4 Fixed connection bug. 2013-09-29 08:07:10 -04:00
irungentoo
aae9fae257 Fixed possible problem. 2013-09-28 20:50:54 -04:00
irungentoo
d4e42230bd Potential DoS fixed. 2013-09-28 19:03:29 -04:00
irungentoo
8adb34e6a9 Fixed possible bug. 2013-09-28 17:19:32 -04:00
irungentoo
abd4278fc4 Connection bug fixed. 2013-09-28 12:13:26 -04:00
irungentoo
0e2173367a Merge branch 'FullName-ClientData46' 2013-09-28 10:42:14 -04:00
irungentoo
e1bea734e0 Fixed small issue. 2013-09-28 10:39:45 -04:00
irungentoo
2b8d0d045a Behaviour with LAN ips is now better, also fixed possible bug. 2013-09-28 10:27:25 -04:00
irungentoo
92f89b9384 LAN ips can be sent to LAN ips. 2013-09-28 09:54:17 -04:00
irungentoo
ed07194eb6 friend_iplist and route_tofriend behaviour fixes. 2013-09-28 09:21:08 -04:00
irungentoo
d4378fd394 Merge pull request #608 from Nominate/patch-5
Update INSTALL.md
2013-09-28 05:38:04 -07:00
Nominate
62e7d6bbb7 Update INSTALL.md
Included git in the apt-get so that new users can use the necessary git clone command.
2013-09-28 09:22:20 +01:00
irungentoo
d14ba73bc3 Fixed possible problem. 2013-09-27 23:10:33 -04:00
irungentoo
2dd1c5515c Astyled the code. 2013-09-27 22:03:38 -04:00
irungentoo
0e318af9e2 Merge branch 'ClientData46' of https://github.com/FullName/ProjectTox-Core into FullName-ClientData46 2013-09-27 21:10:34 -04:00