50 #ifndef _MulticastSocketService_H_
51 #define _MulticastSocketService_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;
67 #ifdef __DARWIN_UNIX03
69 #define inaddrr(x) (*(struct in_addr *) myAddr->x[sizeof sa.sin_port])
82 namespace multidevice {
89 unsigned int interfaceIP;
94 UDPSocket* readSocket;
95 UDPSocket* writeSocket;
97 pthread_mutex_t mutexBuffer;
98 vector<struct frame*>* outputBuffer;
103 unsigned int portNumber);
107 int createMulticastGroup();
110 bool setSocketOptions();
114 unsigned int getInterfaceIPAddress(){
return 0;};
115 int getServicePort();
116 void dataRequest(
char* data,
int taskSize,
bool repeat=
true);
119 bool sendData(
struct frame* f);
122 bool checkOutputBuffer();
123 bool checkInputBuffer(
char* data,
int* size);
Definition: NetworkUtil.h:53
Definition: MulticastSocketService.h:83
Definition: ISocketService.h:61