summaryrefslogtreecommitdiff
path: root/toxcore/TCP_client.c
AgeCommit message (Collapse)Author
2018-01-14Add random_u16 function and rename the others to match.iphydf
2018-01-14Make TCP_Client_Connection a module-private type.iphydf
2017-08-24Add platform independent constantsDiadlo
2017-08-24AF_INET -> TOX_AF_INETDiadlo
2017-06-04Add a monolith_test that includes all toxcore sources.iphydf
This requires that every symbol, even if static (file-scope), is unique. The idea is that we can easily run "whole" program static analysis on programs that include monolith.h ("whole" is in quotes, as we don't include dependencies like libsodium in this static analysis).
2017-04-22Revert "Implement tox_loop"Maxim Biro
This reverts commit 5ff099763b1f56414572e1c12eb2f003117db5a0.
2017-04-01Implement tox_loopAnsa89
2017-02-26Add part of platform-independent network API implementationDiadlo
socket -> net_socket htons -> net_htons htonl -> net_htonl connect -> net_connect sendto -> net_sendto_ip4 getaddrinfo -> net_getipport sa_family_t -> Family
2017-01-28Add VLA compatibility macro for C89-ish compilers.iphydf
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-11-09Remove new_nonce function in favour of random_nonce.iphydf
`new_nonce` has been an alias for `random_nonce` for a while now. Having two names for the same operation is confusing. `random_nonce` better expresses the intent. The documentation for `new_nonce` talks about guaranteeing that the nonce is different from previous ones, which is incorrect, it's just quite likely to be different.
2016-11-02Compile as C++ for windows builds.iphydf
Compiling as C++ changes nothing semantically, but ensures that we don't break C++ compatibility while also retaining C compatibility. C++ compatibility is useful for tooling and additional diagnostics and analyses.
2016-09-24Make toxcore code C++ compatible.iphydf
It is still C code, so still compatible with C compilers as well. This change lets us see more clearly where implicit conversions occur by making them explicit.
2016-09-16Ensure that all TODOs have an owner.iphydf
In the future, all TODOs added either need a bug number (TODO(#NN)) or a person's github user name. By default, I made irungentoo the owner of all toxcore TODOs, mannol the owner of toxav TODOs, and myself the owner of API TODOs.
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-13Group #include directives in 3-4 groups.iphydf
1. Current module (if C file). 2. Headers from current library. 3. Headers from other library (e.g. toxcore includes in toxav). 4. System headers.
2016-09-02Do not use `else` after `return`.iphydf
http://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code
2016-08-31Add braces to all if statements.iphydf
2016-08-18Make tox_callback_friend_name stateless.iphydf
See #27 and #40 for details.
2016-01-27 fix: replace memset with sodium_memzero for sensitive dataRoman Proskuryakov
2016-01-27 add: comments about hairy codeRoman Proskuryakov
2015-04-20Some small fixes.irungentoo
Increased interval between onion key changes to 2 hours.
2015-04-15Fixed memory leak in TCP connection.irungentoo
2014-12-26Make it possible to port clients to the new api by just replacingirungentoo
proxy_enabled with proxy_type.
2014-12-26Fixed bug with auto tests and cleaned up the code a bit.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-28Fixed gcc warnings.irungentoo
2014-08-15Set socket family to family of proxy when using proxy.irungentoo
2014-08-14Added basic socks5 proxy support to TCP client.irungentoo
2014-08-03remove unneeded printf's/prevent stdout spamJfreegman
2014-07-16Fixed possible bug with TCP nonce not getting incremented.irungentoo
2014-07-16Merge branch 'split-video' of https://github.com/notsecure/toxcoreirungentoo
2014-07-16applied priority queue changes to the TCP client toonotsecure
2014-07-15Fixed TCP bug.irungentoo
Packet was being copied with a wrong, smaller length.
2014-07-15Fixed bug with TCP.irungentoo
Don't increment nonce if packet was discarded instead of being sent.
2014-07-11Fixed some small TCP issues.irungentoo
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-07-02Merge branch 'const_correctness' of https://github.com/schuetzm/ProjectTox-Coreirungentoo
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-18Fixed possible connection issue.irungentoo
2014-05-18Fixed TCP client connection isse.irungentoo
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-17add_tcp_relay_peer() can be used to add relays that we know thatirungentoo
peer is connected to. Some cleanups/fixes.