MKCommModel
MKControl.h
00001 #ifndef MKCONTROL_H
00002 #define MKCONTROL_H
00003 
00004 #include <stdint.h>
00005 #include <pthread.h>
00006 #include <vector>
00007 #include <map>
00008 
00009 #include "include/bson/bson.h"
00010 
00011 #include "include/commmodel.hpp"
00012 #include "MKConfig.h"
00013 #include "MKRequest.h"
00014 
00015 class MKCommModel;
00016 
00019 class MKControl {
00020 public:
00021 
00022         ~MKControl();
00023 
00025         static MKControl *start(MKCommModel *model);
00026         static void *initThread(void *);
00027 
00028 private:
00029 
00030         enum { kMsgBufSize = 65000 };
00031 
00032         MKControl(MKCommModel *);
00033 
00034         void begin(); // start
00035 
00036         MKCommModel *model;
00037         pthread_t thread;
00038 
00039 };
00040 
00041 #endif
 All Classes Functions Variables