2011-04-04 17:37:19 +02:00
|
|
|
#ifndef _OWLPS_POSITIONING_OUTPUTUDPSOCKET_HH_
|
|
|
|
#define _OWLPS_POSITIONING_OUTPUTUDPSOCKET_HH_
|
2011-04-04 16:45:00 +02:00
|
|
|
|
2011-07-30 15:58:48 +02:00
|
|
|
#include "outputnetworksocket.hh"
|
2011-03-15 15:27:42 +01:00
|
|
|
|
2011-04-05 15:06:46 +02:00
|
|
|
/// Sends results to a remote host by UDP
|
|
|
|
/**
|
|
|
|
* The results are sent through an UDP socket as a CSV string value. The
|
|
|
|
* format used is the same as in OutputCSV.
|
|
|
|
*/
|
2011-07-30 15:58:48 +02:00
|
|
|
class OutputUDPSocket: public OutputNetworkSocket
|
2011-03-15 15:27:42 +01:00
|
|
|
{
|
2011-04-05 15:06:46 +02:00
|
|
|
protected:
|
2011-04-04 16:45:00 +02:00
|
|
|
/** @name Operations */
|
|
|
|
//@{
|
|
|
|
/// Initialises the socket
|
2011-04-05 15:06:46 +02:00
|
|
|
bool init_socket(void) ;
|
2011-07-30 15:58:48 +02:00
|
|
|
/// Sends a string through the socket
|
|
|
|
bool send_data(const std::string &data) const ;
|
2011-04-04 16:45:00 +02:00
|
|
|
//@}
|
|
|
|
|
2011-03-15 15:27:42 +01:00
|
|
|
public:
|
2011-07-30 15:58:48 +02:00
|
|
|
OutputUDPSocket(const std::string &_remote_host,
|
|
|
|
const uint_fast16_t _remote_port) ;
|
2011-03-15 15:27:42 +01:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-04-04 17:37:19 +02:00
|
|
|
#endif // _OWLPS_POSITIONING_OUTPUTUDPSOCKET_HH_
|