• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _FRAMEWORK_CLIENT_H
2 #define _FRAMEWORK_CLIENT_H
3 
4 #include "../../../frameworks/base/include/utils/List.h"
5 
6 #include <pthread.h>
7 
8 class FrameworkClient {
9     int             mSocket;
10     pthread_mutex_t mWriteMutex;
11 
12 public:
13     FrameworkClient(int sock);
~FrameworkClient()14     virtual ~FrameworkClient() {}
15 
16     int sendMsg(const char *msg);
17     int sendMsg(const char *msg, const char *data);
18 };
19 
20 typedef android::List<FrameworkClient *> FrameworkClientCollection;
21 #endif
22