30 #ifndef __MOCAP_OPTITRACK_SOCKET_H__ 31 #define __MOCAP_OPTITRACK_SOCKET_H__ 33 #include <sys/types.h> 34 #include <sys/socket.h> 35 #include <netinet/in.h> 39 #include <arpa/inet.h> 60 static const int MAXRECV = 3000;
63 UdpMulticastSocket(
const int local_port,
const std::string multicast_ip =
"224.0.0.1");
82 int send(
const char* buf,
unsigned int sz,
int port);
90 char buf [ MAXRECV + 1 ];
Exception class thrown by socket classes in this file.
const char * getBuffer()
Returns a pointer to the internal buffer, holding the received data.
Allows to retrieve data from a UDP multicast group.
SocketException(std::string description)
Constructor.