TOBI Interface A  0.1
tia::UDPDataServer Class Reference

Server to distribute DataPacket via UDP. More...

#include <udp_data_server.h>

Public Member Functions

 UDPDataServer (boost::asio::io_service &io_service)
 Constructor.
virtual ~UDPDataServer ()
 Destructor.
void setDestination (const std::string &address, boost::uint16_t port)
 Sets the destination to sent packets to.
std::string getTargetIP ()
boost::asio::ip::udp::endpoint destination () const
 Returns the DataPacket destination.
void incClientCount ()
 Increments the number of clients of this server by one.
void decClientCount ()
 Decrements the number of clients of this server by one.
void sendDataPacket (DataPacket &packet)
 Sends a DataPacket to the clients.

Detailed Description

Server to distribute DataPacket via UDP.

Todo:
Maybe use transmission into multiple subnets or use multicast.

Definition at line 62 of file udp_data_server.h.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations