Commit Graph

117 Commits

Author SHA1 Message Date
irungentoo 0045ace8a8 Small cleanups. 2015-05-02 21:55:42 -04:00
irungentoo 2ff39d3d54 Fixed windows warning. 2015-04-14 20:56:16 -04:00
irungentoo d05e39274c Make tox_new return TOX_ERR_NEW_PORT_ALLOC for all socket related errors. 2015-04-13 08:32:33 -04:00
irungentoo 405558258d Enable SO_REUSEADDR on TCP server socket. 2015-04-11 20:24:39 -04:00
irungentoo 7afab000f7 tox_new now sets error to TOX_ERR_NEW_PORT_ALLOC when binding to port fails. 2015-03-12 13:03:14 -04:00
irungentoo 73b9cf48f9 Merge branch 'worfox-new_api' into new_api 2015-03-08 19:08:33 -04:00
Christoffer Sterner 3315fd2571 Change LOGGER_DEBUG to LOGGER_ERROR for fail bind 2015-03-07 23:45:00 +01:00
Christoffer Sterner 10ca292f24 Change fprintf debug into LOGGER_DEBUG for consistency 2015-03-07 22:39:27 +01:00
irungentoo 2af1608059 Fixed debug fprintf. 2015-03-07 16:16:25 -05:00
irungentoo 7a82565c8c Merge branch 'port_range_option' of https://github.com/saneki/toxcore into new_api 2015-03-02 21:03:34 -05:00
saneki 6e8762b30a Allow for specifying the port range to use in Tox_Options 2015-02-27 11:58:00 -06:00
mannol ad67259535 Logger fix 2015-01-10 23:29:00 +01:00
irungentoo 93a998d15a Code cleanups.
Moved some functions to onion.c.

Fixed possible portability issues.
2015-01-01 21:30:42 -05:00
irungentoo 8ac13beea4 Code cleanup.
Added length checks to ipport_pack() function.
2014-12-31 15:24:09 -05:00
Maxim Biro 377da127a1 Added HTTP proxy support 2014-12-13 23:59:50 -05:00
irungentoo 6bbb939855 Cleaned up packet length types in toxcore.
They are now all uint16_t instead of sometimes being uint32_t.

Replaced some other uint32_t with unsigned ints.
2014-11-21 20:18:29 -05:00
irungentoo 38c411ec3a Fixed iOS possible SIGPIPE issue.
Apparently on iOS UDP sockets can SIGPIPE (what the fuck apple?).
2014-09-03 07:49:51 -04:00
irungentoo 1298932deb UDP can now be disabled.
new_messenger() now takes an options struct as an argument.
2014-08-14 15:27:34 -04:00
irungentoo dbab15cf0c Remove useless code. 2014-08-14 14:43:01 -04:00
irungentoo 97ad1e62b6 Added addr_parse_ip() to network.h header.
Removed useless semicolons.
2014-07-20 20:08:00 -04:00
irungentoo bd6f8a2186 Merge branch 'mannol1-master' 2014-06-28 22:29:39 -04:00
notsecure 1f5496e43b remove pointer type warnings when building with mingw 2014-06-27 07:38:36 -04:00
Tux3 / Mlkj / !Lev.uXFMLA 3044bd8101 Fix CppCheck style errors
#if 0 the content of toxav/msi.c : int stringify_message(MSIMessage
*msg, char *dest)
This function has no effect and does not seem to be used for actively
waiting.

Fix various other style errors, reduce scope when possible, avoid
redundant writes, clarify operator priorities, etc.
2014-06-20 21:43:21 +02:00
irungentoo 07936960df Astyle and fixes. 2014-06-10 18:35:55 -04:00
Marc Schütz 8bdf487d19 Const correctness in toxcore/network.c 2014-06-10 18:54:16 +02:00
irungentoo f2101a7d86 Toxcore closer to building correctly with gcc -std=c99. 2014-06-07 22:56:52 -04:00
irungentoo 99572e944a IN6_ARE_ADDR_EQUAL was used only once, replaced it. 2014-06-07 19:47:00 -04:00
irungentoo 1bad0b5eea Fixed TOX_MAX_MESSAGE_LENGTH define.
Removed some useless code from toxcore.

Astyled core code with new version of astyle.
2014-06-01 18:55:52 -04:00
Ansa89 184e71ede2 Check for CLOCK_MONOTONIC_RAW
This should fix irungentoo/ProjectTox-Core#879 (and it's better than irungentoo/ProjectTox-Core#883).
2014-05-28 14:34:17 +02:00
irungentoo 82e38883a2 Merge branch 'mannol1-Multicalls' into multi-av 2014-05-25 12:27:48 -04:00
mannol a1f2a18ae4 Merge upstream and other stuff 2014-05-20 00:10:40 +02:00
notsecure cecefd290a mistakes
forgot to build before pushing
2014-05-19 11:34:40 -04:00
notsecure 0d711afbec IP_Port packing unpacking in onion.c 2014-05-19 09:18:04 -04:00
irungentoo 207e87187d libsodium header should only be included when libsodium is used. 2014-05-18 18:17:42 -04:00
stal 28c5665a08 Fix current_time_monotonic on OS X.
clock_gettime doesn't exist there, so
throw in some equivalent mach stuff.
2014-05-18 14:56:35 -07:00
mannol 843171fbc8 This works. 2014-05-16 19:56:40 +02:00
irungentoo a26ced5fcb Merge branch 'master' into TCP 2014-05-08 18:26:01 -04:00
irungentoo 89022326d3 Fixed major denial of service issue. 2014-05-08 18:07:51 -04:00
irungentoo 4dc0af61c6 All time in core is now monotonic. 2014-05-03 11:58:45 -04:00
irungentoo deb8bfc350 Random number functions belong in crypto_core. 2014-05-01 19:42:44 -04:00
mannol 42b25a4d3e Yeah many calls 2014-04-27 19:21:26 +02:00
irungentoo 09aa97f712 Fixed issue. 2014-04-25 17:31:04 -04:00
Steven Noonan ecf0ff3e7f sockets: support Mac OS X way of disabling SIGPIPE on a socket
Mac OS X doesn't have MSG_NOSIGNAL, so we need to use SO_NOSIGPIPE.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2014-04-13 04:01:38 -07:00
irungentoo bd0d24fc9c Added TCP_client.
Some work done on the TCP part.
2014-04-06 20:51:03 -04:00
irungentoo c8ab29632b Some code cleanups. 2014-04-02 18:02:53 -04:00
irungentoo 5770a0e29a Merge branch 'api-fix'
Main changes:
1. Strings no longer need to be NULL terminated.
2. tox_get_friend_id is now named tox_get_friend_number.
3. The friend request callback function is now (Tox *tox, uint8_t *,
uint8_t *, uint16_t, void *), the Tox object pointer has been added to
it.
2014-03-18 20:02:50 -04:00
irungentoo 5babb281c0 Friend request callback now contains the Tox object. 2014-03-16 13:24:39 -04:00
irungentoo e95494482f A bit of work done on the TCP relay server. 2014-03-15 22:11:36 -04:00
Kelong Cong a13de8b105 updated compilation and execution instructions for Lossless UDP tests, and fixed minor typos 2014-03-12 21:40:52 +00:00
Maxim Biro e118319467 Some tox_wait_* improvements 2014-03-07 22:40:00 -05:00