gardners
8020401cf0
removed creation of keypairs table that is being deprecated in favour
...
of BK fields in manifest.
2012-05-15 17:26:34 +09:30
gardners
525d3c4154
substantial work towards implementing BK field in rhizome manifests.
2012-05-15 17:24:25 +09:30
gardners
17370b3464
added comment for starting work on handling BK fields in manifests.
2012-05-15 15:44:49 +09:30
Andrew Bettison
f90b21ec78
Implement rhizome config options
...
rhizome.datastore_path - if not set, reverts to serval instance path
rhizome.enable - if not set, defaults to true
2012-05-15 12:56:10 +09:30
Andrew Bettison
7087afc404
Refactor main() into main.c
...
Now dna.c only contains code for the old command line
2012-05-15 11:09:21 +09:30
Andrew Bettison
cecb09f46a
Add test for debug.all config option
2012-05-15 09:49:40 +09:30
Andrew Bettison
d11258cefc
Overhaul debug flags
...
Config debug flags are now represented as individual items, eg:
servald config set debug.verbose yes
servald config set debug.rhizome yes
instead of aggregated, eg:
servald config set debug verbose,rhizome <-- no longer works
Added a debug flag "debug.all" that can be set and cleared, over which
individual flag sets/clears take priority.
Slimmed down dna.c by moving some globals and functions to the files where they
are used.
Default command line (help message) is now the new style, not the deprecated
style.
2012-05-14 18:37:32 +09:30
Andrew Bettison
b02e9b9ac4
Overhaul rhizome datastore path code
...
Create datastore directory and all parent dirs if it does not exist
More robust error checking and buffer overflow protection
New mkdirs() and mkdirsn() functions
2012-05-14 18:37:32 +09:30
gardners
67e6c7ae2a
fixed 10 pounds of potatoes in 5 pound sack (FUBAR) bug.
2012-05-14 16:24:58 +09:30
gardners
ed488a12c2
more debugging for Jeremy
2012-05-14 16:16:06 +09:30
gardners
d74afa9ac2
added some debugging to help solve the non-responsive issue that
...
Jeremy found.
2012-05-14 15:52:15 +09:30
gardners
f0b72955d1
preparation for nacks for retransmission.
2012-05-14 15:44:36 +09:30
gardners
ae44826d7e
improved debug message when rejecting an unsigned or incorrectly
...
signed manifest.
2012-05-12 07:36:39 +09:30
gardners
0b5a9665b2
first cut code for sending monitor socket announcements when
...
rhizome bundles are received.
2012-05-12 07:24:52 +09:30
gardners
cd65e47be1
fixed segfault bug in rhizome fetch.
...
(serval-node/import directory needs to exist to fetch files,
maybe the code should just make the directory if not present)
2012-05-11 19:07:27 +09:30
gardners
c448eab720
fixed audio handling for the most part.
...
aliasing noise and/or buffer underrun noise is present.
2012-05-11 14:11:58 +09:30
gardners
2ea218b567
fast-audio getting closer to working.
...
Figured out how to make buffer time very short
(set record rate high works, setting buffer size does not).
Of course this means we need to downsample and upsample.
2012-05-11 13:28:24 +09:30
gardners
81c2a926a3
working on getting short-circuit audio working.
2012-05-11 13:28:24 +09:30
Andrew Bettison
e746557a08
Fix bug in overlay_gettime_ms()
...
The sequence start time was only getting set in overlay_interface_init(), which
was not always called, or was called after overlay_gettime_ms() had already
been used.
Added FATALF(), FATAL() and FATAL_perror() macros.
Removed a bunch of debug statements no longer needed in monitor.c and server.c.
2012-05-11 10:38:46 +09:30
gardners
14f9d8001b
and even better fix again, since this one builds on both linux and
...
android.
2012-05-11 08:18:58 +09:30
gardners
c70646039d
better fix for redefined symbols
2012-05-11 08:17:37 +09:30
gardners
51966737a6
fix build problem on unbuntu (ifreq gets redefined)
2012-05-11 08:16:15 +09:30
gardners
7b82ccbd7b
work on bypass-audio.
...
CALLSTATUS monitor message has gained a field, thus changing
API for java side.
2012-05-11 08:14:00 +09:30
Andrew Bettison
c29f210e91
Remove some duplicate defs in audio_msm_g1.c
2012-05-11 00:17:33 +09:30
Andrew Bettison
e39ab01903
Reduce monitor.c debug output a bit
2012-05-11 00:17:02 +09:30
Andrew Bettison
fe25f06129
Conditionally compile new ALSA sound code
2012-05-10 18:29:27 +09:30
Andrew Bettison
022e3289dd
Quieten new compile warnings
2012-05-10 18:29:00 +09:30
Andrew Bettison
8c1b8920d5
Fix possible cause of SEGV crash in monitor.c
2012-05-10 18:08:59 +09:30
Andrew Bettison
881576212c
Fix all trivial compiler warnings
2012-05-10 18:08:59 +09:30
Andrew Bettison
4f68a945ed
Less verbosity from Makefile
2012-05-10 18:02:59 +09:30
gardners
850d7b42d7
reworked shortcircuit audio code.
2012-05-10 16:58:57 +09:30
Andrew Bettison
b15e5cfee7
Improve debugging/logging macros
...
Replace 'WHYRETNULL();' statements with 'return WHYNULL();'
Introduce DEBUG(), DEBUGF(), DEBUG_perror() and D macros
Add logMessage() and vlogMessage() functions
Implement setReason() using vlogMessage()
2012-05-10 12:53:57 +09:30
Andrew Bettison
0cf69c9b30
Don't build playwav on Android
2012-05-10 12:50:12 +09:30
Andrew Bettison
0fa40973ec
Make 'start' command call setpgrp() when detaching
2012-05-10 12:46:40 +09:30
gardners
8d2792ce74
substantial work towards playing audio on IDEOS/G1 type MSM chipset
...
android phones directly from C to dramatically reduce latency.
2012-05-10 03:47:18 +09:30
Andrew Bettison
d96d8ff8d6
Move signal handling to server.c
...
Improve diagnostic messages from signal handler
For some reason, signal handler was not being set in server process when called
from main()
2012-05-09 19:06:44 +09:30
Andrew Bettison
f1e23d463b
Improve disgnostic messages from monitor.c
2012-05-09 19:06:17 +09:30
Andrew Bettison
d36a8c945a
Add GPL header comment to Java source file
2012-05-09 19:05:15 +09:30
Andrew Bettison
c5f26567fb
Fix code typo that inflicted unwanted debug output
2012-05-09 12:51:59 +09:30
gardners
dbb9b4930f
removed some more debugging.
2012-05-09 07:40:29 +09:30
gardners
fbd19db931
stripped out lots of debugging for audio frame handling ready for
...
audio-streaming of call.
2012-05-09 07:38:34 +09:30
Andrew Bettison
68cfa6218c
Minor fix to WHY_perror() macro
2012-05-08 17:48:16 +09:30
Andrew Bettison
da9fe6fdca
Fix 'start' command bug when invoked via JNI
...
Child process was using return not exit(), which was unrolling the
JNI call stack in a sub-process and causing havoc.
2012-05-08 16:35:14 +09:30
gardners
8aae21232f
fix to stop runaway last update time that was squelching keepalive
...
messages.
2012-05-08 15:58:37 +09:30
gardners
b198db38b9
fixed various bugs in monitor-cli.
2012-05-08 15:47:39 +09:30
gardners
c571493096
fixed non-blocking after reading/writing so that android shell
...
doesn't get upset.
2012-05-08 14:56:15 +09:30
Andrew Bettison
836f8332e8
Replace perror() with WHY_perror()
...
Puts more diagnostics to Android log
2012-05-08 14:53:34 +09:30
Andrew Bettison
8dd9a70852
Fix 'stop' command
...
Do not fail with error if servald.pid is nonexistent/inaccessible
2012-05-08 14:53:34 +09:30
gardners
08768a7c8c
removed monitor executable from android build (it's a servald
...
cli app now).
2012-05-08 14:46:39 +09:30
gardners
596b20b5e8
interactive servald monitor cli command implemented.
2012-05-08 14:41:21 +09:30