Commit Graph

3492 Commits

Author SHA1 Message Date
irungentoo
f818c1a197
Added functions to send and receive lossy encrypted packets over
the Tox connection.

A/V should now work over TCP.
2014-05-21 15:28:14 -04:00
stal
83d4d8ea5d Install tox_bootstrap_daemon
I call on the venerable @jin_eld once again to verify that this change is correct.
2014-05-20 18:57:20 -07:00
notsecure
2c8f6ffc3f epoll for tcp server 2014-05-20 20:46:51 +00:00
irungentoo
248fd212ba
Merge branch 'notsecure-work' 2014-05-20 09:30:55 -04:00
notsecure
6eae3d5ad7 fixed some mistakes 2014-05-20 09:21:26 -04:00
notsecure
b034be4162 use LIST in TCP_server 2014-05-20 07:08:03 -04:00
notsecure
35ae6cb90e list takes data to remove faster 2014-05-20 07:04:41 -04:00
notsecure
d65ea9bc8d equivalent bitwise not 2014-05-20 06:30:15 -04:00
irungentoo
0fa5feb8b7
Merge branch 'notsecure-work3' 2014-05-19 19:47:05 -04:00
notsecure
403ab7c2ab misplaced bracket 2014-05-19 19:28:20 -04:00
notsecure
1810d1e20e proper realloc failure check 2014-05-19 19:07:47 -04:00
notsecure
1b0a810a65 max number of shared relays 2014-05-19 19:03:52 -04:00
notsecure
9ae2fde0b9 style (again) 2014-05-19 18:55:24 -04:00
mannol
0620d1f064 GOGOGO 2014-05-20 00:48:53 +02:00
mannol
c9f1c6882d Merge upstream fo real now? 2014-05-20 00:27:02 +02:00
mannol
a1f2a18ae4 Merge upstream and other stuff 2014-05-20 00:10:40 +02:00
notsecure
410294da48 style, failure check on realloc 2014-05-19 17:53:29 -04:00
stal
8e5e89b871 configure.ac: Don't check for clock_gettime on OS X
We don't need it anymore. jin-eld pls do not kill
2014-05-19 14:43:36 -07:00
notsecure
987a8d9850 tcp relay sharing (PACKET_ID_SHARE_RELAYS) 2014-05-19 17:39:50 -04:00
notsecure
fe66fcc7e4 list
Simple struct with functions to create a list which associates ids with
data
2014-05-19 16:42:09 -04:00
irungentoo
fc19327dcc
Merge branch 'notsecure-master' 2014-05-19 14:22:43 -04:00
notsecure
d27a83820c added missing ipport_pack 2014-05-19 14:18:26 -04:00
irungentoo
e85feb8a3d
Fixed a bug where someone could just send back the ping request packet
with only the first byte set to 1 instead of 0 and the public key set
to the one of the reciever as a valid response packet.

This breaks network compatibility with all previous cores.
2014-05-19 12:56:36 -04:00
notsecure
ede8455a5a function comments in header 2014-05-19 11:56:45 -04:00
notsecure
cecefd290a mistakes
forgot to build before pushing
2014-05-19 11:34:40 -04:00
irungentoo
8cec3cdd66
Merge branch 'bootstrap-daemon-improvements' of https://github.com/nurupo/InsertProjectNameHere into nurupo-bootstrap-daemon-improvements
s
2014-05-19 10:59:35 -04:00
irungentoo
116f3d46e8
Removed now useless code. 2014-05-19 10:57:56 -04:00
notsecure
0d711afbec IP_Port packing unpacking in onion.c 2014-05-19 09:18:04 -04:00
Maxim Biro
286d8d9661 Made config file more consistent with default values 2014-05-18 21:04:42 -04:00
Maxim Biro
fe1694fa69 Added default ports to the .c file, included 33445 port 2014-05-18 19:59:01 -04:00
Maxim Biro
261a70353f Fixed a bug 2014-05-18 19:59:01 -04:00
Maxim Biro
8b5e3d5208 Allow multiple instances of the daemon 2014-05-18 19:58:57 -04:00
irungentoo
207e87187d
libsodium header should only be included when libsodium is used. 2014-05-18 18:17:42 -04:00
stal
28c5665a08
Fix current_time_monotonic on OS X.
clock_gettime doesn't exist there, so
throw in some equivalent mach stuff.
2014-05-18 14:56:35 -07:00
irungentoo
77d2ad373a
Fixed IP_Port packed struct being 1 byte too big on windows. 2014-05-18 16:07:26 -04:00
irungentoo
906969d376
Fixed out of bounds write. 2014-05-18 14:43:32 -04:00
irungentoo
0035cfac37
Merge branch 'tcp-bootstrap-daemon' of https://github.com/nurupo/InsertProjectNameHere into nurupo-tcp-bootstrap-daemon 2014-05-18 14:22:58 -04:00
irungentoo
376eecafd3
Fixed possible connection issue. 2014-05-18 13:58:41 -04:00
irungentoo
d68197b895
Save a couple TCP relays on save and reconnect to them on load.
Removed some old code.
2014-05-18 13:45:33 -04:00
irungentoo
8cb3ddda8b
Fixed TCP client connection isse. 2014-05-18 12:59:21 -04:00
irungentoo
d573271f03
Fixed connection issue. 2014-05-18 12:15:57 -04:00
irungentoo
e87929e869
TCP branch now ready for start of real testing.
Friends can now exchange TCP relay addresses so that they can
connect together.

Currently all bootstrap nodes are treated as TCP relays.
2014-05-18 10:55:38 -04:00
Maxim Biro
7dd811214a Added MOTD functionality 2014-05-18 00:38:20 -04:00
Maxim Biro
e75930e72e Some small fixes 2014-05-17 21:49:57 -04:00
Maxim Biro
8be6b0986d Extracted min and max allowed port values into named constants 2014-05-17 21:49:51 -04:00
irungentoo
9d4947ffa5
add_tcp_relay_peer() can be used to add relays that we know that
peer is connected to.

Some cleanups/fixes.
2014-05-17 21:30:52 -04:00
Maxim Biro
ceaeae8cff Added TCP server functionality 2014-05-17 20:36:16 -04:00
mannol
ea96c1758a Fixed this 2014-05-17 23:15:54 +02:00
irungentoo
b5f84b33f7
net_crypto now works again on pure UDP. 2014-05-17 15:23:16 -04:00
irungentoo
60ed415a5a
Added a function to get the DHT public key stored in net_crypto.
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-17 14:56:20 -04:00