summaryrefslogtreecommitdiff
path: root/toxcore/network.h
AgeCommit message (Collapse)Author
2015-01-01Code cleanups.irungentoo
Moved some functions to onion.c. Fixed possible portability issues.
2014-12-31Code cleanup.irungentoo
Added length checks to ipport_pack() function.
2014-12-31Removed now useless packet id.irungentoo
2014-12-13Added HTTP proxy supportMaxim Biro
2014-11-21Cleaned up packet length types in toxcore.irungentoo
They are now all uint16_t instead of sometimes being uint32_t. Replaced some other uint32_t with unsigned ints.
2014-10-12Fixed return value comment of new_networking functionMaxim Biro
2014-09-25More groupchats code written.irungentoo
2014-09-25Removed now useless atributes from structs.irungentoo
2014-09-25Removed groupchats from core.irungentoo
2014-09-17Reduce max udp packet size to 2K.irungentoo
2014-08-14Remove useless code.irungentoo
2014-07-21Don't set connection to established if packet is kill packet.irungentoo
Removed now useless defines in network.h
2014-07-20Added addr_parse_ip() to network.h header.irungentoo
Removed useless semicolons.
2014-06-13Const correctness for various packet callbacksMarc Schütz
2014-06-10Astyle and fixes.irungentoo
2014-06-10Const correctness in toxcore/network.cMarc Schütz
2014-06-07Toxcore closer to building correctly with gcc -std=c99.irungentoo
2014-06-07IN6_ARE_ADDR_EQUAL was used only once, replaced it.irungentoo
2014-06-01Fixed TOX_MAX_MESSAGE_LENGTH define.irungentoo
Removed some useless code from toxcore. Astyled core code with new version of astyle.
2014-05-21Added functions to send and receive lossy encrypted packets overirungentoo
the Tox connection. A/V should now work over TCP.
2014-05-19function comments in headernotsecure
2014-05-19mistakesnotsecure
forgot to build before pushing
2014-05-19IP_Port packing unpacking in onion.cnotsecure
2014-05-18Fixed IP_Port packed struct being 1 byte too big on windows.irungentoo
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-03All time in core is now monotonic.irungentoo
2014-05-01Random number functions belong in crypto_core.irungentoo
2014-05-01Improved the crypto_cmp function.irungentoo
It now uses the NaCl functions when the length is appropriate. Moved crypto defines to crypto_core.h
2014-04-29Some more work done on the middle network protocol.irungentoo
Handshake most likely has no more possible flaws to it, next thing to do is to do the same with the data packets. Wrote a couple more functions.
2014-04-28Added some packet defines.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-15Major protocol changes, this commit breaks all network compatibility.irungentoo
Removed a bunch of useless space from various structs. pack_nodes() and unpack_nodes() are now used to transmit lists of nodes for the DHT and onion parts. They provide a way to transmit both ipv6 and ipv4 nodes in the same packet in a portable way that takes as little space as possible without compression. Using pack_nodes, merged the send nodes and send nodes ipv6 packets into one packet greatly reducing the risk of amplification attacks.
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-06Added TCP_client.irungentoo
Some work done on the TCP part.
2014-04-02Some code cleanups.irungentoo
2014-03-29TCP server now has onion functionality.irungentoo
All the IP/Port related structs now have __attribute__ ((__packed__))
2014-03-18Merge branch 'api-fix'irungentoo
Main changes: 1. Strings no longer need to be NULL terminated. 2. tox_get_friend_id is now named tox_get_friend_number. 3. The friend request callback function is now (Tox *tox, uint8_t *, uint8_t *, uint16_t, void *), the Tox object pointer has been added to it.
2014-03-15A bit of work done on the TCP relay server.irungentoo
2014-03-07Some tox_wait_* improvementsMaxim Biro
2014-02-22Renamed dht server to dht nodeMaxim Biro
2014-02-14Added custom userpackets.irungentoo
A way to send and handle lossy UDP packets coming from friends. Will be used for A/V.
2014-02-01Added DHT bootstrap server info packets.irungentoo
define DHT_SERVER_EXTRA_PACKETS to enable.
2014-01-30Convert IPv4 in IPv6 to IPv6 address in recieve packet.irungentoo
2014-01-25missing #endifSean
2014-01-25Moved to networking.hSean
Plan 9 requires u.h in every file
2014-01-19proper windows preprocessor detectionBen Iofel
2013-12-24Added the shell of onion.{c, h}irungentoo
2013-12-21Added function to save an encrypted version of the messenger.irungentoo
Also added some tests.
2013-12-15Code cleanups.irungentoo
No functionality changed.