Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-11-02 | Compile 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-10-06 | Use `socklen_t` instead of `unsigned int` in call to `accept`. | iphydf | |
Not all platforms define `socklen_t` as `unsigned int`. E.g. Android defines it as `int`. | |||
2016-09-24 | Make 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-22 | Make TCP_Server opaque. | iphydf | |
We should aim to make as many structures module-private as possible. | |||
2016-09-16 | Ensure 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-13 | Use <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-13 | Add some astyle options to make it do more. | iphydf | |
It now enforces a bit more formatting. In particular, padding inside parentheses is removed. I would like it to remove padding after unary operators, but there seems to be no option for that. | |||
2016-09-13 | Group #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-02 | Do not use `else` after `return`. | iphydf | |
http://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code | |||
2016-08-31 | Add braces to all if statements. | iphydf | |
2016-01-27 | fix: replace memset with sodium_memzero for sensitive data | Roman Proskuryakov | |
2016-01-27 | fix: compare sensitive data with sodium_memcmp | Roman Proskuryakov | |
fix: make increment_nonce & increment_nonce_number independent of user-controlled input fix: make crypto_core more stable agains null ptr dereference | |||
2015-06-28 | Removed useless parameter from new_TCP_server() | irungentoo | |
2015-04-11 | Enable SO_REUSEADDR on TCP server socket. | irungentoo | |
2015-04-01 | Increased max possible amount of TCP connections in TCP server when using epoll. | irungentoo | |
2015-02-23 | Use edge trigger on listen socket in TCP_Server. | irungentoo | |
This may or may not improve things. | |||
2015-02-22 | When socket dies, kill it. | irungentoo | |
Use epoll to detect when socket closed connection. | |||
2015-02-21 | Fixed possible TCP server bug. | irungentoo | |
Function returned success when should have returned failure. | |||
2015-02-07 | kill_TCP_server() now frees everything in TCP server. | irungentoo | |
2015-01-13 | Fix TCP server regression. | irungentoo | |
onion.c was parsing recieved packets a bit too strictly and discarding packets that had ips with non valid families. TCP uses a non valid family to send back the packet to the proper connected node. | |||
2014-12-26 | Fixed bug with auto tests and cleaned up the code a bit. | irungentoo | |
2014-10-17 | Initialise source.port to prevent garbage value | xor2003 | |
2014-08-28 | Fixed gcc warnings. | irungentoo | |
2014-08-26 | Merge branch 'lobiCode-myChan' | irungentoo | |
2014-08-27 | fix the memory leak in new_TCP_server function | slaniCode | |
2014-07-22 | Use epoll_create() instead of epoll_create1() for compatibility with | irungentoo | |
older kernels. | |||
2014-07-16 | Fixed possible bug with TCP nonce not getting incremented. | irungentoo | |
2014-07-15 | Merge branch 'notsecure-split-video' | irungentoo | |
2014-07-15 | fixed some issues | notsecure | |
2014-07-15 | added priority packet system for TCP server | notsecure | |
2014-07-15 | Fixed TCP bug. | irungentoo | |
Packet was being copied with a wrong, smaller length. | |||
2014-07-15 | Fixed bug with TCP. | irungentoo | |
Don't increment nonce if packet was discarded instead of being sent. | |||
2014-07-02 | Merge branch 'const_correctness' of https://github.com/schuetzm/ProjectTox-Core | irungentoo | |
2014-06-30 | Const-correctness for TCP_server.c | Marc Schütz | |
2014-06-20 | Reduced number of realloc calls bs_list does | Maxim Biro | |
2014-06-20 | Fix redundant assignment in TCP_server.c | Tux3 / Mlkj / !Lev.uXFMLA | |
2014-06-13 | Const correctness for various packet callbacks | Marc Schütz | |
2014-06-06 | Renamed list functions to fix conflict issue on certain machines. | irungentoo | |
2014-05-24 | This function only needs to be ran once per second when epoll is | irungentoo | |
enabled because all it does then is send pings and check timeouts which are calculated by the second. | |||
2014-05-22 | Fixed an issue in list. | irungentoo | |
Cleaned up TCP server a bit. | |||
2014-05-20 | epoll for tcp server | notsecure | |
2014-05-20 | fixed some mistakes | notsecure | |
2014-05-20 | use LIST in TCP_server | notsecure | |
2014-05-17 | Fixed bug in TCP server where memory was expected to be zero but | irungentoo | |
sometimes wasn't. | |||
2014-05-16 | Removed non spec behaviour. | irungentoo | |
2014-05-16 | TCP_server fix. | irungentoo | |
Clear the connections array when connection is killed. Don't allow duplicate entries in connections array. | |||
2014-05-16 | Fixed some issues in TCP_server. | irungentoo | |
Timed out connections now remove themselves correctly. If a peer with the same public key as another tries to connect, the old connection is killed. | |||
2014-05-14 | Added OOB packets to the TCP client and server. | irungentoo | |
2014-05-08 | Merge branch 'master' into TCP | irungentoo | |
2014-04-22 | Decided pretty much how the handshake would work. | irungentoo | |
Started writing the code. Astyled some files. |