nobody
285dabdbc1
Updated to match current toxav.h
2016-03-09 01:22:15 +13:00
romik-g
c2b2142f33
Changes from @nurupo for build and runtime dependencies that reduce image size
...
Also removal of example bootstrap nodes from the config file in one line
2016-03-03 13:30:11 -05:00
romik-g
739975dc3d
Re-format to reduce image file by 50%
2016-03-03 13:29:24 -05:00
Roman Yepishev
b0e720846f
Add missing files so that archive for make dist is complete
2016-02-26 22:58:13 -05:00
Ferdinand Thiessen
a8873ed4fd
Fix #1520 : Program returns random data in a function
...
Added default return to non void functions level_syslog and level_stdout.
2016-02-05 22:31:34 +01:00
Maxim Biro
c597f0786d
Add missing newline
2016-01-24 01:33:53 -05:00
irungentoo
405854e1e7
Cleanups.
2016-01-04 22:48:58 -05:00
Maxim Biro
9d1efd5949
Change init.d to SysVinit
2016-01-02 18:55:53 -05:00
Maxim Biro
516d5ac09d
Add information on how to update the bootstrap daemon
2016-01-02 18:46:52 -05:00
Maxim Biro
6c104b5fe3
Keep it in alphabetical order
2016-01-01 21:10:20 -05:00
Maxim Biro
f74d7c5ae6
Version bump
2016-01-01 20:29:24 -05:00
Maxim Biro
1b721ea1ec
Add Dockerfile for the daemon
2016-01-01 20:29:24 -05:00
Maxim Biro
c22c06adbe
Flush stdout output
...
Apparently when no tty is attached, which is the case for Docker, the
buffer size for stdout increases to the point that only half of the
entire log might be written.
2016-01-01 20:29:24 -05:00
Maxim Biro
5d9e40bbd3
Unify function comment style
...
Use doxygen java-style function comments already used in log.[c|h].
2016-01-01 20:29:24 -05:00
Maxim Biro
232488816e
Fix license headers and file descriptions
2016-01-01 20:29:18 -05:00
Maxim Biro
d89fdb230b
Fix include paths
...
They are relative to the Makefile instead of the source file itself,
which is unintuitive and is messing with my IDE.
2016-01-01 20:28:48 -05:00
Maxim Biro
da76da6c95
Remove dependency on files from testing directory
...
Also remove unneeded includes and refactor sleep define.
2016-01-01 00:55:09 -05:00
Maxim Biro
7d86caf51f
Put command-line arguments related functions in a separate file
2016-01-01 00:36:57 -05:00
Maxim Biro
6b40a581b1
Put config-related functions in a separate file
...
bootstrap_node_packets.c was giving an error as it was being included
twice and there were no include guards, so part of it was split into
bootstrap_node_packets.h.
2016-01-01 00:19:35 -05:00
Maxim Biro
e1fc8c1d3c
Add ability to run the daemon in foreground
...
Useful for things like a Docker container or just running it in the
terminal.
Complements the stdout logging option. This is actually why the stdout
logging was added in the first place -- to be used in the foreground
mode, though nothing stops one from using stdout in the background
mode, which one could redirect to a file.
2015-12-31 23:18:39 -05:00
Maxim Biro
2ef1ce9421
Fix wrong filename mentioned above license
2015-12-31 20:06:37 -05:00
Maxim Biro
ffa927fa36
Rename LOGGER_BACKEND to LOG_BACKEND
2015-12-31 20:01:24 -05:00
Maxim Biro
a40fd1bb6c
Add ability to specify multiple command line arguments
...
Needed in order to specify which log backend to use.
Init scripts need to be updated to contain --config before the path to
the config file.
2015-12-31 19:58:34 -05:00
Maxim Biro
8c812f5341
Make daemon use the new log code
...
"log" is a reserved name (log from math.h), so it got changed into
write_log.
2015-12-31 02:44:44 -05:00
Maxim Biro
c50781a2b7
Make logger a global object instead of an instance
...
Passing Logger object into every function isn't fun. See for yourself:
something as simple as a public key printing function turns from
>void print_public_key(const uint8_t *public_key)
to
>void print_public_key(Logger *logger, const uint8_t *public_key)
2015-12-31 01:24:31 -05:00
Maxim Biro
bfc3c4eaac
Add logger object to be able to support multiple logging backends
2015-12-30 23:43:04 -05:00
Maxim Biro
78d6e2d58b
Change log levels
...
Some of them were set incorrectly, e.g. something that caused the
daemon to exit was marked as just a warning, instead of an error.
Removed debug level as it was hard to decide whether something should
go into info or debug. This is mostly because the use of the debug level
wasn't well defined. Debug should be used for information that could
help a user to debug an issue, but messages marked as debug were by the
most part the "success" log messages, which could go into info level
instead.
2015-12-30 21:49:00 -05:00
Eniz Vukovic
87828a1b42
Add synchronization protection for send_frame API functions
2015-10-24 01:56:49 +02:00
Eniz Vukovic
363771ea3c
Fix typo and change logger config option
2015-10-13 00:35:46 +02:00
Eniz Vukovic
8f130b6f25
Remove old comment
2015-10-11 00:41:34 +02:00
Eniz Vukovic
d6fdf16520
New Adaptive BR algorithm, cleanups and fixes
2015-10-10 23:54:23 +02:00
mannol
c641b0fceb
Updated with upstream
2015-08-09 12:39:21 +02:00
mannol
657a57b406
Fixed memory leak during session cleanup and fixed naming.
2015-08-07 02:04:04 +02:00
mannol
7d5de68364
Fixed CALL_STATE naming
2015-07-10 16:54:53 +02:00
mannol
dd0880af38
Fixed documentation.
2015-07-09 03:40:47 +02:00
irungentoo
970c2cccf3
Merge branch 'master' of https://github.com/JFreegman/toxcore
2015-07-08 21:15:22 -04:00
irungentoo
749a9330c4
Link changes.
2015-07-07 22:57:11 -04:00
Jfreegman
f3b65bc3dc
Fix a couple API doc mistakes
2015-07-07 02:05:45 -04:00
mannol
6c126e34e6
Implement handling capability change on rtp level
2015-06-30 01:41:38 +02:00
irungentoo
50e0802a62
Removed useless parameter from new_TCP_server()
2015-06-28 22:14:54 -04:00
mannol
2ecb71bb1e
Renamed TOXAV_CALL_STATE to TOXAV_FRIEND_CALL_STATE
2015-06-27 17:28:07 +02:00
mannol
1ba55d0ca7
Added explanation about how audio callback works
2015-06-27 16:12:33 +02:00
mannol
08bc4eb0e0
Added payload turning off by setting bit rate to 0
2015-06-27 01:55:28 +02:00
mannol
f9f17fdf10
Merge remote-tracking branch 'upstream/master' into new_api
2015-06-25 00:58:23 +02:00
irungentoo
12663475bc
Merge branch 'typo' of https://github.com/zetok/ProjectTox-Core
2015-06-20 21:35:51 -04:00
irungentoo
022a3ec0d8
Merge branch 'doc' of https://github.com/zetok/ProjectTox-Core
2015-06-20 21:35:20 -04:00
Zetok Zalbavar
0536bf8fc4
Fix typo in readme: "enrironment" → "environment"
2015-06-20 18:54:37 +01:00
Zetok Zalbavar
68dc14f80c
Add real instruction on how to use APIDSL and astyle
...
also add to "tox{,.in}.h" note that "tox.h" shouldn't be edited directly,
pointing to "tox.in.h"
2015-06-20 01:22:46 +01:00
Zetok Zalbavar
4ffd5584f9
Improve documentation about tcp_port
...
Apparently it's not entirely clear that it's not needed in clients.
v2, as provided by @nurupo
2015-06-20 01:08:43 +01:00
mannol
979d7730aa
Forgot about this
2015-06-05 22:18:21 +02:00
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