summaryrefslogtreecommitdiffstats
path: root/include/sysutils/FrameworkListener.h
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-06-15 14:06:03 -0700
committerSan Mehat <san@google.com>2009-06-15 14:06:03 -0700
commitc73a3a5771a2d29d1bae666bfde12f751d66fc96 (patch)
treeda254373f3ec359d7352efcd146ef6905b08cf42 /include/sysutils/FrameworkListener.h
parent47c1d7344ab183f5440843f6b594d1b74a2335b0 (diff)
downloadsystem_core-c73a3a5771a2d29d1bae666bfde12f751d66fc96.zip
system_core-c73a3a5771a2d29d1bae666bfde12f751d66fc96.tar.gz
system_core-c73a3a5771a2d29d1bae666bfde12f751d66fc96.tar.bz2
libsysutils: Move to a null terminated string protocol using space as a field separator.
Also removes some debugging Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'include/sysutils/FrameworkListener.h')
-rw-r--r--include/sysutils/FrameworkListener.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sysutils/FrameworkListener.h b/include/sysutils/FrameworkListener.h
index 8a83c33..4e3d396 100644
--- a/include/sysutils/FrameworkListener.h
+++ b/include/sysutils/FrameworkListener.h
@@ -22,6 +22,8 @@
class SocketClient;
class FrameworkListener : public SocketListener {
+public:
+ static const int CMD_ARGS_MAX = 8;
private:
FrameworkCommandCollection *mCommands;
@@ -34,6 +36,6 @@ protected:
virtual bool onDataAvailable(SocketClient *c);
private:
- void dispatchCommand(SocketClient *c, char *cmd);
+ void dispatchCommand(SocketClient *c, char *data);
};
#endif