mannol
d694839d60
Rebased on master and removed alpha channel (again)
2015-06-05 22:14:37 +02:00
irungentoo
6d883f488f
Return error if file_id parameter is NULL.
2015-06-03 19:56:12 -04:00
irungentoo
5ea703c844
Comment fix.
2015-05-29 19:01:14 -04:00
irungentoo
29c37bf2f4
Fixed comment.
2015-05-28 11:37:24 -04:00
irungentoo
441e007362
tox_new returns NULL on failure.
2015-05-25 15:20:38 -04:00
irungentoo
8a32b3a12f
Merge branch 'bootstrapd-update2' of https://github.com/nurupo/InsertProjectNameHere
2015-05-24 21:00:45 -04:00
irungentoo
8e80ced6ce
Move savedata to options struct.
...
Add a way to select the type of savedata (normal savedata, load a
secret key, potentially others?) to load.
2015-05-22 18:23:56 -04:00
mannol
3100042a2b
Updated with master
2015-05-22 23:22:31 +02:00
irungentoo
7315ad08dd
Merge branch 'tcp_server'
2015-05-20 15:52:03 -04:00
mannol
62c40af1a0
Added apidsl input file
2015-05-16 18:51:11 +02:00
irungentoo
06188e9818
Fixed segfault in tox-bootstrapd.
2015-05-13 10:45:16 -04:00
Maxim Biro
86cd3141d0
Updated daemon's systemd file, fixed typos in README
...
@arthurtiteica has pointed out that systemd has more suitable facilities for
creating a temporary directory for a PID file rather than calling ExecStartPre,
which requires an absolute path to coreutils executables we used for creating a
directory and changing its owner, paths of which are are not universal across
distributions. Systemd can take care of it for us without need to provide
absolute paths, which is what we use here.
2015-05-10 03:04:42 -04:00
irungentoo
3a28a8c5fb
Added basic TCP server hosting to tox.h api.
...
TODO: tell friends we are hosting a relay and prioritize using relays
hosted by friends over bootstrap ones.
2015-05-08 22:03:24 -04:00
flan
045b510a14
fix useless use of cat
2015-04-26 09:57:50 +02:00
irungentoo
422e74424a
Switched tox.h to the dsl generated one.
...
Added input file to generate it.
Moved the astyle stuff to the astyle directory in other/.
2015-04-25 20:39:13 -04:00
Maxim Biro
14d942c1e1
Fixed incompatible pointer type warning
2015-02-07 20:35:51 -05:00
irungentoo
93b1c346fe
Merge branch 'master' of https://github.com/ray65536/toxcore
2015-02-06 20:49:11 -05:00
Eugene Lopatin
159df4b23c
Documentation and service description for using tox-bootstrapd with
...
systemd
2015-02-05 12:43:24 +06:00
Urras
47cac28df4
Move OS X install script
2015-02-03 12:48:15 -05:00
Alexandre Erwin Ittner
ef0922cf9f
Add script to generate save files with custom keys
...
Allow users to play with keys generated outside Tox core without
depending on features from any specific client. Just generate a
stub save file that every client will understand.
2015-02-01 12:23:14 -02:00
Maxim Biro
51b8ac8460
Replace hardcoded nodes with examples
...
Reverts Proplex'es change.
2015-01-25 18:31:44 -05:00
irungentoo
ee0f06937f
Check if key file was opened correctly in DHT_bootstrap.c
...
Warn the user if it wasn't.
2014-11-29 23:45:32 -05:00
irungentoo
6114bd7f3e
Merge branch 'tox-bootstrapd-network-error-handling' of https://github.com/nurupo/InsertProjectNameHere
2014-10-15 20:01:43 -04:00
Maxim Biro
e8d7763e92
Don't fail when the binary is not found
...
Per Debian Policy Manual, paragraph 9.3.2: Writing the scripts.
2014-10-14 14:14:06 -04:00
Maxim Biro
fd255ee6c5
Fixed a typo
2014-10-13 01:10:36 -04:00
Maxim Biro
2bdbc2bf1b
Added some const-correctnessness
2014-10-13 00:59:00 -04:00
Maxim Biro
e677bbc89e
Fixed a typo
2014-10-12 23:31:20 -04:00
Maxim Biro
1200e69a3f
Added IPv4 fallback, made IPv6 and IPv4 fallback enabled by default
2014-10-12 23:22:25 -04:00
Maxim Biro
09302e8909
Free ports when there are no valid ones
2014-10-12 19:21:22 -04:00
irungentoo
0444ca18df
Merge branch 'master' of https://github.com/stqism/ToxCore
2014-10-11 18:59:09 -04:00
Sean Qureshi
2df986f6b9
Does a realloc with a size of 0 if every port is invalid
2014-10-10 18:23:23 -07:00
Sean Qureshi
532ace635a
Enable IPv6, fix systemd PID bug
2014-10-10 18:09:52 -07:00
David Lohle
cc5453edbd
Add working tox nodes
...
since the daemon is in the process of being packaged for easy deployment, it's probably best we have a working default config that extends existing nodes.
2014-10-06 03:16:55 -04:00
cgar
2bb2bc4163
spelling corrections
2014-09-09 20:31:37 -04:00
Maxim Biro
02f90fc604
Added .sh ending to bootstrapd's init script
...
Fixes some build issues.
2014-08-18 22:24:42 -04:00
Maxim Biro
d00c3c32d2
Fixed some warnings
2014-08-17 15:59:37 -04:00
Maxim Biro
504160ee57
Fixed daemon taking long time to stop
2014-08-17 02:17:03 -04:00
Maxim Biro
69e619bfa0
Renamed files for less confusion
2014-08-17 01:58:24 -04:00
Maxim Biro
ba7058c891
Made possible to run the daemon under its own user
2014-08-17 01:53:54 -04:00
Maxim Biro
e474a32e71
Made init.d script work with systemd
2014-08-17 00:12:35 -04:00
Maxim Biro
2040fc41d2
Renamed tox_bootstrap_daemon into tox-bootstrapd
2014-08-16 23:19:23 -04:00
irungentoo
e334188353
Merge branch 'fun-bootstrap-node-info' of https://github.com/nurupo/InsertProjectNameHere
2014-07-09 21:01:53 -04:00
Maxim Biro
5e1ae35034
Added a script to query DHT bootstrap node info
2014-07-09 14:00:16 -04:00
Maxim Biro
2037d27210
Fixed a case when public key contained null bytes
2014-06-20 23:10:12 -04:00
Maxim Biro
b85f192b79
Fixed sodium include
2014-06-20 22:28:33 -04:00
Maxim Biro
b9010540b6
Added strkey
2014-06-20 22:28:22 -04:00
irungentoo
5c87c7bf4a
Merge branch 'leak-rebase' of https://github.com/tux3/toxcore
2014-06-20 10:06:14 -04:00
Tux3 / Mlkj / !Lev.uXFMLA
727659673c
Fix exceptional file leak in other/fun/sign.c
2014-06-20 12:42:03 +02:00
irungentoo
9b2d3e50b2
Merge branch 'bootstrap_daemon-leaks-1' of https://github.com/tux3/toxcore into tux3-bootstrap_daemon-leaks-1
2014-06-19 16:23:00 -04:00
Tux3 / Mlkj / !Lev.uXFMLA
4c12ee3e30
Fix scope, ressource leaks in boostrap daemon
...
Reduce scope of config_setting_t *elem
Fix various leaks of files keys_file and pid_file
2014-06-18 23:38:38 +02:00
irungentoo
881b2d900d
Fixed some warnings.
2014-06-15 20:49:39 -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
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
906969d376
Fixed out of bounds write.
2014-05-18 14:43:32 -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
Maxim Biro
ceaeae8cff
Added TCP server functionality
2014-05-17 20:36:16 -04:00
irungentoo
a26ced5fcb
Merge branch 'master' into TCP
2014-05-08 18:26:01 -04:00
irungentoo
2aa3cdfc69
Fixed the DHT bootstrap daemon.
2014-04-23 12:47:57 -04:00
irungentoo
0559904ea2
Updated some files so that they could build with latest core.
...
Fixed some issues.
2014-04-23 12:29:24 -04:00
Carlos E. Garcia
cf33c2f9ad
multiple spelling fixes
2014-04-16 12:14:44 -04:00
irungentoo
6578d930f8
DHT_bootstrap.c now has TCP server functionality enabled.
...
Fixed a regression (same type as last commit).
2014-04-16 07:19:40 -04:00
irungentoo
b16af69d92
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.)
2014-04-13 20:40:48 -04:00
Jin^eLD
70475d281d
Fix NaCl builds for *BSD
...
From what I see there is a difference between *BSD and Linux when
linking vs. toxcore which has been bulit vs. the NaCl library:
on Linux it only links if NaCl's object files (i.e. randombytes.o) is
present in the linker options, however on *BSD systems this will cause a
linking error, see:
https://github.com/Tox/toxic/issues/31#issuecomment-38224441
This commit makes sure that we do not add the NaCl object files to our
pkg-config settings on *BSD, but do add them on Linux.
2014-03-23 02:05:57 +01:00
Maxim Biro
5a142bb697
Renamed dht server to dht node
2014-02-22 17:07:15 -05:00
irungentoo
d6e2f903a7
Added entry to TODO and a public key cracker (vanity key finder) to other/fun.
2014-02-10 19:53:44 -05:00
irungentoo
7a2ed25d36
Astyled and removed some useless files.
2014-02-09 09:43:16 -05:00
Maxim Biro
ecbceac341
Fixed memory leaks and removed repeated code
2014-02-09 02:01:04 -05:00
irungentoo
ad5d58b4a2
Added DHT bootstrap server info packets.
...
define DHT_SERVER_EXTRA_PACKETS to enable.
2014-02-01 18:45:37 -05:00
tawm
04580cf122
Fixed PID forgetfulness.
2014-01-30 15:56:45 -05:00
Maxim Biro
553472442f
Shortened daemon's name
2014-01-25 21:00:31 -05:00
Maxim Biro
4782a8475a
Made bootstrapping optional
2014-01-25 20:37:01 -05:00
Maxim Biro
b9ef9b91af
Added more error checking
2014-01-25 20:00:34 -05:00
Sean
5eecd92f8e
Update DHTservers
2014-01-21 22:53:59 -08:00
irungentoo
98043f4512
Updated DHT server list.
2014-01-21 10:20:02 -05:00
irungentoo
8421e44ffb
Added updated bootstrap server.
2014-01-20 16:56:48 -05:00
irungentoo
15d01ca746
Updated DHT server list with onion supporting DHT servers.
...
Onionised DHT_test.
2014-01-20 15:20:17 -05:00
Maxim Biro
96767c170a
Moved things around
2014-01-20 14:19:11 -05:00
Maxim Biro
b67d6bd024
Fixed missing cleanup
2014-01-20 14:09:20 -05:00
irungentoo
522f90fee1
Enabled onion in bootstrap_serverdaemon.
2014-01-20 13:05:34 -05:00
irungentoo
aff6b112c0
Merge branch 'onion'
2014-01-20 12:48:26 -05:00
Ben Iofel
174cec7f15
proper windows preprocessor detection
2014-01-19 19:30:14 -05:00
Maxim Biro
c3763cb708
Added .sh to the script
2014-01-19 17:21:24 -05:00
Maxim Biro
d8f2072ab5
Fixed function conflict
2014-01-19 15:27:29 -05:00
Maxim Biro
718b4415fc
Fixed spelling
2014-01-19 15:09:57 -05:00
Maxim Biro
bffc3d96e5
Spellchecked everything
2014-01-19 14:14:25 -05:00
Maxim Biro
885e5898c5
Astyled the code
2014-01-19 13:53:18 -05:00
Maxim Biro
5a4756a6c0
Fixed build
2014-01-19 05:03:19 -05:00
Maxim Biro
8a80b5e0ac
Fixed comments and variables' names
2014-01-19 04:57:46 -05:00
Maxim Biro
50ad4e84c5
Renamed to fix build process
2014-01-19 04:37:21 -05:00
Maxim Biro
f254f3aa1b
Fixed some formatting
2014-01-19 04:37:20 -05:00
Maxim Biro
733916ea05
Tell github that README is a markdown file
2014-01-19 04:37:19 -05:00
Maxim Biro
28edc23329
Improved DHT bootstrap daemon
...
Supports "unlimited" number of bootstrap nodes in the config file, instead of
just 32.
PID and keys file paths are not limited by 512 chars anymore.
Doesn't read the whole list of bootstrap servers into a global datastructure
that just sits there after being processed once -- reads bootstrap servers
one by one, processing them between reads.
Supports IPv6.
Has an option for IPv6.
Supports LAN discovery.
Has an option for LAN discovery.
Writes to syslog.
Uses new functions introduced in the core.
`status` in the bash script now works.
Has a simple README, with instructions for Debian-based distros.
2014-01-19 04:34:58 -05:00
irungentoo
608330efef
Onion servers are now DHT ready.
2014-01-17 14:00:00 -05:00
Jin^eLD
92e9ec6674
Always build DHT_bootstrap
...
DHT_bootstrap is not the same as DHT_bootstrap_serverdaemon, the latter
depends on libconfig and can be enabled/disable via a configure
parameter.
DHT_bootstrap has no dependencies and can always be built.
2013-12-20 18:42:54 +01:00
Coren[m]
0a4c3d7e2e
Move unix_time(), id_cpy()/id_eq(), is_timeout() to util.*
...
unix_time():
- returns local value for current epoch
- value is updated explicitly with unix_time_update() called at new_DHT()/doMessenger()/do_DHT()
is_timeout():
- uses the local value for current epoch
id_cpy()/id_eq() => id_copy()/id_equal():
- centralized duplicate definitions
- replaced (most) memcpy()/memcmp() of (*, *, CLIENT_ID_SIZE) with id_copy()/id_equal()
2013-10-24 22:32:28 +02:00