Go to the documentation of this file.
   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> 
   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);
 
  
int send(const char *buf, unsigned int sz, int port)
Exception class thrown by socket classes in this file.
UdpMulticastSocket(const int local_port, const std::string multicast_ip="224.0.0.1")
Creates a socket and joins the multicast group with the given address.
static const int MAXRECV
Maximum number of bytse that can be read at a time.
int recv()
Retrieve data from multicast group.
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.
mocap_optitrack
Author(s): Kathrin Gräve 
, Alex Bencz/ , Tony Baltovski , JD Yamokoski 
autogenerated on Wed Mar 2 2022 00:31:51