summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
AgeCommit message (Collapse)Author
2014-07-21Fixed bug where two Tox clients sometimes didn't reconnect rightirungentoo
after disconnecting due to them getting stuck in a connection loop.
2014-07-21Don't set connection to established if packet is kill packet.irungentoo
Removed now useless defines in network.h
2014-07-19Removed useless function.irungentoo
2014-07-18Spread packets over many TCP relays instead of just using the first one.irungentoo
2014-07-14Change connection status before handling data packets.irungentoo
2014-07-14Set packets_left to default non zero values when creating connection.irungentoo
2014-07-14Packets can now be sent from the connection status callback.irungentoo
2014-07-14Attempted fix of file transfer issue.irungentoo
Instead of dropping the rate to minimum just half it until it drops to the minimum.
2014-07-11.notsecure
2014-07-10fix send rate going up when peer disconnectsnotsecure
2014-07-02Merge branch 'const_correctness' of https://github.com/schuetzm/ProjectTox-Coreirungentoo
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-06-29Core should no longer attempt to send data faster than the links canirungentoo
carry it.
2014-06-25Fixed some more possible issues with file transfers/conjestion control.irungentoo
2014-06-25Tweaked conjestion control algorithm.irungentoo
File transfers should now work better.
2014-06-20Reduced number of realloc calls bs_list doesMaxim Biro
2014-06-15Astyled code.irungentoo
2014-06-13Const correctness for various packet callbacksMarc Schütz
2014-06-12pthread is now a core dependency instead of just a toxav dependency.irungentoo
Fixed possible thread bug with sending A/V packets. TODO: eventually make toxcore thread safe.
2014-06-10Const correctness in various interdependent filesMarc Schütz
2014-06-06Renamed list functions to fix conflict issue on certain machines.irungentoo
2014-06-05Fixed regression that made packet_send_rate increase even whenirungentoo
no data was transmitted.
2014-06-05Optimized net_crypto UDP packet sorting using list.irungentoo
2014-06-04Doubled minimum transfer rate.irungentoo
File transfers got stuck because it was too low.
2014-06-04Request packets are now sent with send_data_packet_helper().irungentoo
This means all data packets are now padded the same way.
2014-06-04Added data packet padding to toxcore.irungentoo
Data sent as lossless or lossy is now padded with: ((MAX_CRYPTO_DATA_SIZE - data_length) % CRYPTO_MAX_PADDING) bytes in order to reduce the possibility of length related attacks. I set CRYPTO_MAX_PADDING to 8 but it can be changed anytime without breaking network compatibility between tox cores.
2014-06-03Tweaked file transfers a bit.irungentoo
2014-06-02Increased some timeouts to try to prevent disconnections whenirungentoo
transferring files on wireless networks.
2014-05-30Renamed tox_do_run_interval to tox_do_interval.irungentoo
tox_do_interval now returns a time in ms based on how much action is going on in net_crypto.
2014-05-26file transfer fixesnotsecure
-removed rate limit -send rate no longer gets reset on local/LAN connections
2014-05-22more conjestion controlnotsecure
needs testing
2014-05-21improved conjestion controlnotsecure
2014-05-21Added functions to send and receive lossy encrypted packets overirungentoo
the Tox connection. A/V should now work over TCP.
2014-05-18Save a couple TCP relays on save and reconnect to them on load.irungentoo
Removed some old code.
2014-05-18Fixed connection issue.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-17net_crypto now works again on pure UDP.irungentoo
2014-05-17Added a function to get the DHT public key stored in net_crypto.irungentoo
The DHT public keys in onion_client/net_crypto are synced and set to whichever is more recent. Tox peers now try to connect directly even when already connected with a TCP relay.
2014-05-17Net_crypto can now handle packets sent as TCP OOB packets.irungentoo
Added timestamp to know which DHT public key is good in case onion_client and net_crypto report different ones.
2014-05-17Changed cookie/cookie request packet.irungentoo
Cookie now contains the dht public key of the peer which makes more sense than including the real public key of the reciever. It means we no longer have to rely entirely on onion_client to find the dht public key of the other peer.
2014-05-16Fixed typo.irungentoo
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-15Fixed possibility that packet_send_rate would get stuck.irungentoo
2014-05-12Fixed some issues.irungentoo
Friends with multiple ips (on LAN) should be handled better. Remade the function to check the crypto connection status.
2014-05-11Fixed issue where callbacks were not set for accepted connection.irungentoo
2014-05-11Added kill packets.irungentoo
There should be no more delay between a peer closing their client and their friend being notified of them going offline. (unless the kill packet is lost)
2014-05-10Added basic congestion control to net_crypto.irungentoo
2014-05-09Fixed small issues.irungentoo
Added set_buffer_end(). File transfer test now checks if pieces arrive correctly.