diff options
author | San Mehat <san@google.com> | 2009-05-08 11:15:53 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-05-10 09:26:42 -0700 |
commit | fa644ffe944c01a9b00f8d7676d58394fabee285 (patch) | |
tree | a19968819547c4b515c463adb48106a8d01983aa /include/sysutils/FrameworkClient.h | |
parent | 1441e769b2767e212a3d905bee2fd3535b484ff2 (diff) | |
download | system_core-fa644ffe944c01a9b00f8d7676d58394fabee285.zip system_core-fa644ffe944c01a9b00f8d7676d58394fabee285.tar.gz system_core-fa644ffe944c01a9b00f8d7676d58394fabee285.tar.bz2 |
libsysutils: Add multiple client support and fix some bugs
Diffstat (limited to 'include/sysutils/FrameworkClient.h')
-rw-r--r-- | include/sysutils/FrameworkClient.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/sysutils/FrameworkClient.h b/include/sysutils/FrameworkClient.h new file mode 100644 index 0000000..1eb112a --- /dev/null +++ b/include/sysutils/FrameworkClient.h @@ -0,0 +1,21 @@ +#ifndef _FRAMEWORK_CLIENT_H +#define _FRAMEWORK_CLIENT_H + +#include "../../../frameworks/base/include/utils/List.h" + +#include <pthread.h> + +class FrameworkClient { + int mSocket; + pthread_mutex_t mWriteMutex; + +public: + FrameworkClient(int sock); + virtual ~FrameworkClient() {} + + int sendMsg(char *msg); + int sendMsg(char *msg, char *data); +}; + +typedef android::List<FrameworkClient *> FrameworkClientCollection; +#endif |