50 #ifndef _BroadcastSocketService_H_
51 #define _BroadcastSocketService_H_
53 #include "ISocketService.h"
55 #include "system/compat/SystemCompat.h"
56 #include "system/compat/PracticalSocket.h"
57 using namespace ::br::pucrio::telemidia::ginga::core::system::compat;
59 #include "system/thread/Thread.h"
60 using namespace ::br::pucrio::telemidia::ginga::core::system::thread;
71 namespace multidevice {
74 static const int port = 41000;
75 unsigned int interfaceIP;
76 string broadcastIPAddr;
81 pthread_mutex_t mutexBuffer;
82 vector<struct frame*>* outputBuffer;
89 bool buildDomainAddress();
90 unsigned int discoverBroadcastAddress();
93 unsigned int getInterfaceIPAddress();
95 void dataRequest(
char* data,
int taskSize,
bool repeat=
true);
98 bool sendData(
struct frame* f);
101 bool checkOutputBuffer();
102 bool checkInputBuffer(
char* data,
int* size);
Definition: BroadcastSocketService.h:72
Definition: NetworkUtil.h:53
Definition: ISocketService.h:61