Bug fix
Merge branch 'master' of https://github.com/mannol1/ProjectTox-Core into mannol1-master
Include 'netinet/in_systm.h' on OpenBSD

Otherwise 'n_time' is undefined.
Drop typedef redeclarations

C99 doesn't permit redeclaring typedefs in the same scope.
Add /usr/local/{include,lib} to search paths on OpenBSD
Merge branch 'openbsd' of https://github.com/czarkoff/ProjectTox-Core into czarkoff-openbsd
Fix phone.c
Fix memory leak.
whitespace fix & proper use of "i.e.,"
Merge branch 'avfix' of https://github.com/aitjcize/ProjectTox-Core into aitjcize-avfix
Added TCP test to build system.
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