summaryrefslogtreecommitdiff
path: root/toxcore/TCP_client.h
AgeCommit message (Collapse)Author
2020-03-14Standardise on having a comma at the end of enums.iphydf
Most of our enums already have one. Some didn't. Tokstyle is going to require commas at the end of enumerator lists in enum definitions.
2020-03-14Use spdx license identifier instead of GPL blurb.iphydf
2020-03-14use -1 rather than ~0 in unsigned integer typeszugz (tox)
Using ~0 involves a bitwise operation on int, so depends on the internal representation of signed integers.
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-12Style fixes in TCP code; remove MIN and PAIR from util.h.iphydf
* Moved PAIR to toxav, where it's used (but really this should die). * Replace most MIN calls with typed `min_*` calls. Didn't replace the ones where the desired semantics are unclear. Moved the MIN macro to the one place where it's still used. * Avoid assignments in `while` loops. Instead, factored out the loop body into a separate `bool`-returning function. * Use named types for callbacks (`_cb` types). * Avoid assignments in `if` conditions. * Removed `MAKE_REALLOC` and expanded its two calls. We can't have templates in C, and this fake templating is ugly and hard to analyse and debug (it expands on a single line). * Moved epoll system include to the .c file, out of the .h file. * Avoid assignments in expressions (`a = b = c;`). * Avoid multiple declarators per struct member declaration. * Fix naming inconsistencies. * Replace `net_to_host` macro with function.
2018-01-14Make TCP_Client_Connection a module-private type.iphydf
2017-04-22Revert "Implement tox_loop"Maxim Biro
This reverts commit 5ff099763b1f56414572e1c12eb2f003117db5a0.
2017-04-22Revert "Fix TokTok/c-toxcore#535"Maxim Biro
This reverts commit 439f676d45d75f59f47a000a6adca8e9fe6a6e4e.
2017-04-16Fix TokTok/c-toxcore#535Ansa89
2017-04-01Implement tox_loopAnsa89
2017-01-26Add platform-independent Socket and IP implementationDiadlo
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-01Sort #includes in all source files.iphydf
2016-08-18Make tox_callback_friend_name stateless.iphydf
See #27 and #40 for details.
2015-04-19Removed useless stuff.irungentoo
2015-04-09Some more work on TCP connection.irungentoo
2014-12-21Further refactoring of proxy codeMaxim Biro
2014-12-21Some refactoring of proxy codeMaxim Biro
2014-12-13Added HTTP proxy supportMaxim Biro
2014-08-14Added basic socks5 proxy support to TCP client.irungentoo
2014-07-16applied priority queue changes to the TCP client toonotsecure
2014-07-10Made TCP a bit more solid.irungentoo
TCP ping requests in TCP_client should have a higher success rate.
2014-07-09TCP should be a bit more solid.irungentoo
When a TCP ping request is recieved, try to send the response until success instead of just dropping it if sending the response fails on the first try.
2014-06-30Const-correctness for TCP_client.cMarc Schütz
2014-06-30Const-correctness for toxcore/net_crypto.cMarc Schütz
2014-06-30Const correctness for toxcore/Messenger.c and related filesMarc Schütz
2014-05-18TCP branch now ready for start of real testing.irungentoo
Friends can now exchange TCP relay addresses so that they can connect together. Currently all bootstrap nodes are treated as TCP relays.
2014-05-16Some TCP code added to net_crypto.irungentoo
add_tcp_relay() can be used to connect to some TCP relays. If both Toxes are connected to the same TCP relay(s) and create a connection on which they set the others dht_public_key, they will connect.
2014-05-15Exposed and tested disconnect notification TCP packets.irungentoo
2014-05-14Added OOB packets to the TCP client and server.irungentoo
2014-05-13TCP_client callbacks now have a per connection number that can be set.irungentoo
2014-04-21Crypto related cleanups.irungentoo
Moved Bunch of functions from net_crypto to crypto_core. decrypt_data_fast and decrypt_data_symmetric were the same thing therefore, removed decrypt_data_fast. Replaced all the crypto_secretbox_* defines with the equivalent crypto_box_* one. New define: crypto_box_KEYBYTES that is equal to crypto_box_BEFORENMBYTES.
2014-04-14Added function to TCP client and some tests.irungentoo
2014-04-13TCP_client pretty much done?irungentoo
Now next step is integrating it in tox. Added TCP server functionality to bootstrap server (define TCP_RELAY_ENABLED to enable it.)
2014-04-12Pings and onion packets implemented in TCP_Client.cirungentoo
Astyled one test and added a couple lines to another.
2014-04-06Added TCP_client.irungentoo
Some work done on the TCP part.