summaryrefslogtreecommitdiff
path: root/toxcore/TCP_client.c
AgeCommit message (Collapse)Author
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.
2014-05-16Fixed TCP_client connections not timing out correctly.irungentoo
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-22Decided pretty much how the handshake would work.irungentoo
Started writing the code. Astyled some files.
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-17Fixed build issues.irungentoo
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-13sockets: support Mac OS X way of disabling SIGPIPE on a socketSteven Noonan
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-12Pings and onion packets implemented in TCP_Client.cirungentoo
Astyled one test and added a couple lines to another.