Commit Graph

654 Commits

Author SHA1 Message Date
gardners
91d875d70a fixed various bugs in servald monitor. now receives commands,
and can act on them.
2012-05-04 03:16:06 +09:30
gardners
6718d06421 cleaned up debug output. 2012-05-04 02:40:54 +09:30
gardners
98ea86bde0 added new /proc/net/route method to find interfaces on android
(would you believe that using ifconfig to READ about interfaces
requires ROOT on android).
should also help for interfaces with multiple addresses.
2012-05-03 22:46:00 +09:30
gardners
6e933be9ec fixed bug on android with previous commit 2012-05-03 17:17:56 +09:30
gardners
82ca3dde5d impoved debugging and operation of interface detection
(since it has suddenly decided to fail)
2012-05-03 17:15:05 +09:30
gardners
26ef52cf99 and a bug fix for the above. 2012-05-03 17:04:47 +09:30
gardners
c981b8c28a further monitor client debuggin improvements 2012-05-03 17:04:20 +09:30
gardners
0d899b97d3 improved debugging of when we close our end of client connection. 2012-05-03 17:02:57 +09:30
gardners
f1ac067d4f removed excess debug. 2012-05-03 16:21:14 +09:30
gardners
11132c40c9 fixed big fat nasty socket handling bug. 2012-05-03 16:16:36 +09:30
gardners
f5c3ea024e added debug output to see whether we are getting data back from
java side.
2012-05-03 15:23:42 +09:30
Andrew Bettison
eab6dafcc7 Make commandline.c error messages appear on Android log 2012-05-03 14:50:14 +09:30
Andrew Bettison
490d9ef472 Only define struct ucred if <sys/socket.h> does not provide it 2012-05-03 14:50:14 +09:30
gardners
75e925a8b5 added some debug for monitor interface. 2012-05-03 14:41:18 +09:30
gardners
ac9cbb4e51 removed debugging now that accept doesn't block 2012-05-03 13:42:41 +09:30
gardners
29a7c20160 fixed a blocking io problem. 2012-05-03 13:37:18 +09:30
gardners
61aa3994b6 try to force accept to be non-blocking. 2012-05-03 13:29:48 +09:30
gardners
9dedb6fd06 more debugging to find why servald blocks after accepting a
monitor client.
2012-05-03 13:19:11 +09:30
gardners
4bbe250595 make sure monitor sockets are nonblocking before doing anything
to them.
2012-05-03 13:04:17 +09:30
gardners
5d6f2b0517 added note about path name length calculation for unix domain
abstract socket.
2012-05-03 12:35:16 +09:30
gardners
f1c6b74235 fixed struct ucred handling for android 2012-05-03 12:20:52 +09:30
Andrew Bettison
5b85520f75 Fix JNI command-line interface; return 255 instead of -1 2012-05-03 12:17:49 +09:30
Andrew Bettison
e230bbc40b Improve output from "rhizome extract manifest" 2012-05-03 12:17:49 +09:30
gardners
01e81200d0 adding credentials check for abstract name space unix domain socket
for monitor service.
2012-05-03 12:11:13 +09:30
gardners
f3d288b10e fixed accidental typo. 2012-05-03 11:36:44 +09:30
gardners
03bfa6e0c7 removed dna resolution poll failure error messages. 2012-05-03 11:25:27 +09:30
gardners
2e549a0f96 Switching to abstract name space for socket to get around
permission denied errors.
2012-05-03 11:10:23 +09:30
gardners
0c060ce782 found real cause and fixed for poll()/linux bug (forgot to listen) 2012-05-03 04:00:26 +09:30
gardners
a6faafa0bd and add monitor interface to build for android. 2012-05-03 03:42:35 +09:30
gardners
eb8e34bcde make sure monitor interface announces creation of new calls. 2012-05-03 03:41:26 +09:30
gardners
25f81aeaaf fixed bug with cancelling calls due to lack of listeners.
worked around poll() with accept() unix domain socket linux bug.
generally hooked in the unix domain stream socket interface for
monitoring calls (and later rhizome).
2012-05-03 03:37:03 +09:30
gardners
eb8ffeb71f progress towards monitor interface for following calls. 2012-05-03 03:00:34 +09:30
gardners
d637f31ab7 work towards stream unix domain socket to allow Android/Java
monitoring of call status and rhizome bundle arrivals.
2012-05-03 02:31:12 +09:30
Andrew Bettison
7ba15ccdd7 Add "rhizome extract file" command with tests 2012-05-02 17:57:35 +09:30
Andrew Bettison
6e959fd34c More tests for "rhizome extract manifest"
Proper handling of unknown and invalid manifest IDs
2012-05-02 16:24:27 +09:30
Andrew Bettison
572f8a3a93 Improve test for "rhizome extract manifest" 2012-05-02 16:08:27 +09:30
Andrew Bettison
146eb7cdfd Add "rhizome extract manifest" command 2012-05-02 16:03:09 +09:30
gardners
c9e429e36b and another fd leak. 2012-05-02 02:33:38 +09:30
gardners
cf500085b4 fixed file descriptor leak when trying to bind to an interface. 2012-05-02 02:32:37 +09:30
gardners
b281edec05 filter out invalid SIDs when generating. 2012-05-02 02:32:21 +09:30
gardners
6464ae8100 "dna lookup" now displays name 2012-05-01 14:42:15 +09:30
gardners
14e4af6392 DNA replies now include name. "set did" now accepts name.
Keyring now stores name. "node info resolvedid" now returns name.
2012-05-01 14:38:09 +09:30
gardners
4234cb3ed5 changed bcmp to memcmp 2012-05-01 13:41:22 +09:30
gardners
92192654d0 cli_puts()ify "dna lookup". Add duplicate suppression to dna lookup 2012-05-01 13:39:43 +09:30
gardners
44d0feb575 improved "stop" functionality to better realise when a process
is no longer running.
2012-05-01 07:05:02 +09:30
gardners
3ca1c9c2b6 only close client socket if it has already been opened. 2012-05-01 06:58:07 +09:30
gardners
77f2220134 removed silly call to client_done when sending every MDP message. 2012-05-01 06:50:57 +09:30
gardners
b335424cd5 improved debug output for when sendto fails. 2012-05-01 06:43:22 +09:30
gardners
6e9d9783b8 various measures to prevent stale MDP bindings from hanging around
and causing pain.
2012-05-01 06:10:47 +09:30
gardners
da494c7124 removed debugging output 2012-05-01 05:26:28 +09:30