summaryrefslogtreecommitdiff
path: root/toxcore/onion_client.h
AgeCommit message (Collapse)Author
2020-05-04Add logging to TCP and onion client.iphydf
2020-03-15clean groups codezugz (tox)
* make static functions return bool rather than int to indicate success * add peer_in_list() to factor out uniformity over peer and frozen lists * reduce repetition in send_lossy_all_close * rename 'close' to 'connections' * use uint32_t for peernumber (in accord with tox.c) * explain persistence in tox_conference_get_chatlist documentation * clarify "connectedness" in group API documentation * clarify that tox_conference_peer_count counts only online peers * refactor variously
2020-03-14Use spdx license identifier instead of GPL blurb.iphydf
2018-09-14Standardise header guards.iphydf
Using the full path including the repo name.
2018-08-26Update copyright to 2018.iphydf
2018-08-16Use per-instance `Mono_Time` for Messenger and onion.iphydf
2018-07-21Synchronise parameter names in headers with those in the implementation.iphydf
2018-07-12Fix style in some header files.iphydf
* Enums must by typedef'd. * Comments at end of `#define` must be `//` comments. * Typedef structs must not be anonymous. * `;` at the end of a `#define` is invalid. * Callback typedefs must list their parameter names. * No nested structs. * No inline use of function pointer types. Only typedef'd callback types are allowed. * Enum types are spelled in Camelsnake_Case. * The argument to `#error` must be a string literal.
2018-07-08Use named types for onion callbacks.iphydf
This is now a style rule: you can only use typedef'd function types. Previous rules now applied in `onion_*.c`: * `struct`s must have a name (typedef of unnamed struct is not allowed). * `++i` for increment-stmt, not `i++`, e.g. in loops. * Only a single declarator per struct member declaration. * Type_Names vs. variable_names.
2018-01-14Make Onion_Client a module-private type.iphydf
2018-01-13Make Ping_Array a module-private type.iphydf
2017-08-05Save bandwidth by moderating onion pinging.zugz
2017-01-19Update license headers and remove redundant file name comment.iphydf
"All rights reserved" was incorrect. The project was licensed under GPL3, which means a lot of rights are licensed to everybody in the world, i.e. not reserved to the "Tox Project".
2016-12-22Wrap all sodium/nacl functions in crypto_core.c.iphydf
2016-09-13Use <stdbool.h> and replace _Bool with bool.iphydf
This header is a requirement for the public API, therefore is assumed to exist. It is a C99 standard library header, and _Bool is not intended to be used directly, except in legacy code that defines bool (and true/false) itself. We don't use or depend on such code. None of our client code uses or depends on such code. There is no reason to not use bool.
2016-09-06Make friend requests statelessGregory Mullen (grayhatter)
Messenger is slightly twisty when it comes to sending connection status callbacks It will very likely need at the very least a partial refactor to clean it up a bit. Toxcore shouldn't need void *userdata as deep as is currently does. (amend 1) Because of the nature of toxcore connection callbacks, I decided to change this commit from statelessness for connections changes to statelessness for friend requests. It's simpler this was and doesn't include doing anything foolish in the time between commits. group fixup because grayhatter doesn't want to do it "arguably correct" is not how you write security sensitive code Clear a compiler warning about types within a function.
2016-09-01Sort #includes in all source files.iphydf
2015-12-01Slightly increased number of peers to announce to.irungentoo
Some test fixes.
2015-09-28Lowered interval in onion_client.irungentoo
2015-04-21Only allocate some TCP connections for onion use when needed.irungentoo
Added a function to enable and disable TCP onion connections.
2015-03-11tox_callback_connection_status() implemented.irungentoo
Attempted fix of connection checking to make it more stable.
2015-02-14Code cleanups.irungentoo
2015-02-12Code Cleanups.irungentoo
2015-02-11Code Cleanups.irungentoo
2015-02-09Code Cleanups.irungentoo
2015-02-09Code Cleanups.irungentoo
2015-02-09Code cleanups.irungentoo
2015-02-09Code cleanups.irungentoo
2015-01-21Code cleanups.irungentoo
2015-01-11Attempted fix of Tox killing routers.irungentoo
This commit makes tox use one Onion_Client_Paths struct for all friends instead of one per friend. This should lower the number of ips tox sends packets to which is what I think causes the router issues.
2015-01-05Reduced timeout of onion paths on the first try by 1 second.irungentoo
2014-12-29Adjusted onion timeouts.irungentoo
2014-12-25Onion client improvements.irungentoo
Put bootstrap nodes in a separate list than known good nodes.
2014-12-22Improved detection of dead paths.irungentoo
2014-11-21Cleaned up packet length types in toxcore.irungentoo
They are now all uint16_t instead of sometimes being uint32_t. Replaced some other uint32_t with unsigned ints.
2014-11-20Tox clients now should show they are offline with much better precision.irungentoo
2014-11-02This might fix some peer finding issues.irungentoo
2014-09-27Increasing max number of onion paths might increase initial connectionirungentoo
speed.
2014-09-26Removed useless code from onion_client.irungentoo
Astyled.
2014-09-26Added callbacks to onion_client and net_crypto for the temp dht key.irungentoo
Better than the polling mess. Moved DHT to Messenger from onion_client (still needs some cleanups).
2014-08-18Speeded up onion friend finding.irungentoo
2014-08-14Function to save path nodes.irungentoo
Forgot to commit it with before last commit.
2014-08-14tox_isconnected() now works on TCP only.irungentoo
2014-08-13Tox should now work on TCP only networks.irungentoo
Coming soon: a function to disable UDP.
2014-08-08Added path_nodes array and add_path_node() function.irungentoo
2014-06-30Const-correctness for onion_client.cMarc Schütz
2014-06-30Const correctness for toxcore/Messenger.c and related filesMarc Schütz
2014-06-13Const correctness in toxcore/onion_client.cMarc Schütz
2014-06-10Astyle and fixes.irungentoo
2014-06-10Const correctness in various interdependent filesMarc Schütz