blob: 4a3f0de0e450577d931b80c73f6c05b814019447 [file] [log] [blame]
San Mehatfa644ff2009-05-08 11:15:53 -07001#ifndef _FRAMEWORK_CLIENT_H
2#define _FRAMEWORK_CLIENT_H
3
Mathias Agopianb7286aa2012-03-05 16:45:55 -08004#include "List.h"
San Mehatfa644ff2009-05-08 11:15:53 -07005
6#include <pthread.h>
7
8class FrameworkClient {
9 int mSocket;
10 pthread_mutex_t mWriteMutex;
11
12public:
13 FrameworkClient(int sock);
14 virtual ~FrameworkClient() {}
15
San Mehatdb017542009-05-20 15:27:14 -070016 int sendMsg(const char *msg);
17 int sendMsg(const char *msg, const char *data);
San Mehatfa644ff2009-05-08 11:15:53 -070018};
19
Mathias Agopianb7286aa2012-03-05 16:45:55 -080020typedef android::sysutils::List<FrameworkClient *> FrameworkClientCollection;
San Mehatfa644ff2009-05-08 11:15:53 -070021#endif