Public Member Functions

SCS::UDPSender Class Reference

Send UDP packets to given IP address and port. The sender is multicast aware. More...

#include <udpsender.h>

List of all members.

Public Member Functions

 UDPSender (boost::asio::io_service &io_service, const boost::asio::ip::address &ip_address, short port, bool disable_loopback=false)
 ~UDPSender ()
void write (const void *data, size_t bytes)

Detailed Description

Send UDP packets to given IP address and port. The sender is multicast aware.

Author:
(c) 2009-2010 by Philipp Münzel
Version:
1.3

Constructor & Destructor Documentation

SCS::UDPSender::UDPSender ( boost::asio::io_service &  io_service,
const boost::asio::ip::address &  ip_address,
short  port,
bool  disable_loopback = false 
)
Parameters:
io_serviceboost::asio::io_service to handle the asynchronous requests
ip_addressip address struct
portport to which data is sent
disable_loopbackdisable loopback adapter, enabled by default
SCS::UDPSender::~UDPSender ( ) [inline]

Cancel asynchronous writes and close socket.


Member Function Documentation

void SCS::UDPSender::write ( const void *  data,
size_t  bytes 
)
Parameters:
dataarbitrary binary data to write
bytesnumber of bytes to write

The documentation for this class was generated from the following file: