Age | Commit message (Collapse) | Author |
|
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.
|
|
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.
|
|
|
|
I hadn't done this for the "fun" code, yet. Also, we should include
system headers after our own headers.
"In general, a module should be implemented by one or more .cpp files.
Each of these .cpp files should include the header that defines their
interface first. This ensures that all of the dependences of the module
header have been properly added to the module header itself, and are not
implicit. System headers should be included after user headers for a
translation unit."
-- http://llvm.org/docs/CodingStandards.html#a-public-header-file-is-a-module
|
|
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.
|
|
Ensure that nobody inadvertly modifies the temporary packet data buffer.
|
|
|
|
The parameter names were taken from function definitions to update the names in
function declarations (prototypes).
|
|
This removes the global logger (which by the way was deleted when the first tox
was killed, so other toxes would then stop logging). Various bits of the code
now carry a logger or pass it around. It's a bit less transparent now, but now
there is no need to have a global logger, and clients can decide what to log and
where.
|
|
See #27 and #40 for details.
|
|
|
|
Fix bug that limited it to 1K packets per second.
|
|
|
|
|
|
|
|
|
|
connected.
|
|
|
|
Fixed file transfers disconnecting tox clients from each other in
some network conditions.
|
|
|
|
Calculate public key from it.
|
|
Reduced the amount of waste from dropped packets.
|
|
|
|
|
|
A TCP callback could be received when only a UDP connection was present.
Increased a UDP timeout to make it less likely to time out and switch to TCP.
|
|
Should fix certain connection issues that sometimes happen.
The dht public key of the peer must be known to create the connection.
If the dht pk of the peer changes when a connection is active, it is
killed to make way for the new one.
|
|
|
|
TODO:
-Reconnection.
-If UDP connction is good, connect to less TCP relays.
-Store some TCP relays in friend connection associated to each friend?
|
|
the friend.
|
|
Removed time variable in packet struct and replaced it with sent
variable.
|
|
some congestion control numbers.
|
|
nodes and don't update them.
Paths now try to use the same TCP node for their entire lifetime.
|
|
Increased interval for sending packets that include cookie request
packets, handshake packets and request packets.
|
|
https://github.com/nurupo/InsertProjectNameHere
|
|
|
|
|
|
|
|
They are now all uint16_t instead of sometimes being uint32_t.
Replaced some other uint32_t with unsigned ints.
|
|
|
|
|
|
|
|
|
|
Astyled.
|
|
Better than the polling mess.
Moved DHT to Messenger from onion_client (still needs some cleanups).
|
|
|
|
|
|
|
|
applying to them.
|
|
|
|
Added a recursive mutex to fix possible thread issues when the A/V
thread sends data at the same time as the main thread.
|