Some code written for the TCP part.
Pings and onion packets implemented in TCP_Client.c

Astyled one test and added a couple lines to another.
sockets: support Mac OS X way of disabling SIGPIPE on a socket

Mac OS X doesn't have MSG_NOSIGNAL, so we need to use SO_NOSIGPIPE.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
TCP_client pretty much done?

Now next step is integrating it in tox.

Added TCP server functionality to bootstrap server (define TCP_RELAY_ENABLED to enable it.)
toxav/Makefile.inc: add LIBSODIUM_* variables to flags

These are needed if libsodium paths are discovered by 'configure'. Most systems
don't need this just because libsodium is already on the header/library search
paths, but on e.g. Mac OS X this is required.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
media.h: include 'opus.h' instead of 'opus/opus.h'

The current 'opus/opus.h' works if your opus.h is in /usr/include/opus, as
/usr/include is already in the header search path. If your opus header search
path is found via pkg-config, however, you will get something like this:

  $ pkg-config --cflags opus
  -I/usr/local/Cellar/opus/1.1/include/opus

Since this is pointing directly to include/opus, the 'opus/' prefix on the
header include directive will break.

Since 'opus.h' should work in both cases (as in both cases it will be
discovered via pkg-config), just use the simpler 'opus.h'.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Added function to TCP client and some tests.
Major protocol changes, this commit breaks all network compatibility.

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.
Merge branch 'master' of https://github.com/tycho/ProjectTox-Core into tycho-master
Fixed regression, announce responses can contain 0 nodes.
DHT_bootstrap.c now has TCP server functionality enabled.

Fixed a regression (same type as last commit).
multiple spelling fixes
Some speedups and small fixes.
Merge pull request #834 from cgar/spelling

multiple spelling fixes
Fixed build issues.
Added function to increment nonce by specified number.

Nonces now behave like big endian numbers.
Added text document explaining what needs to be done before TCP can be merged.
Fixed possible pointer issues.
Autoconf apparently gives us a nice define for processor endianess.
Fixed possible buffer overflow in function to send friend requests.