50 #ifndef _BaseDeviceDomain_H_
51 #define _BaseDeviceDomain_H_
53 #include "system/compat/SystemCompat.h"
54 using namespace ::br::pucrio::telemidia::ginga::core::system::compat;
56 #include "system/thread/Thread.h"
57 using namespace ::br::pucrio::telemidia::ginga::core::system::thread;
59 #include "network/BroadcastSocketService.h"
60 #include "network/BroadcastDualSocketService.h"
62 #include "device/BaseDeviceService.h"
64 #include "DeviceDomain.h"
75 namespace multidevice {
87 pthread_mutex_t pMutex;
88 vector<RemoteTask*> passiveTasks;
90 bool hasNewPassiveTask;
92 double passiveTimestamp;
99 virtual bool taskRequest(
int destDevClass,
char* data,
int taskSize);
100 virtual bool passiveTaskRequest(
char* data,
int taskSize);
101 virtual bool activeTaskRequest(
char* data,
int taskSize);
103 virtual void postConnectionRequestTask(
int width,
int height){};
104 virtual void receiveConnectionRequest(
char* task);
105 virtual void postAnswerTask(
int reqDeviceClass,
int answer);
106 virtual void receiveAnswerTask(
char* answerTask){};
109 virtual bool postMediaContentTask(
int destDevClass,
string url);
112 virtual bool receiveMediaContentTask(
char* task){
return false;};
113 virtual bool receiveEventTask(
char* task);
116 virtual void setDeviceInfo(
int width,
int height,
string base_device_ncl_path);
119 virtual bool runControlTask();
120 virtual bool runDataTask();
121 virtual void checkPassiveTasks();
122 virtual void checkDomainTasks();
Definition: BaseDeviceDomain.h:77
Definition: ISocketService.h:61
Definition: BaseDeviceDomain.h:83
Definition: DeviceDomain.h:67