- Main Page
- Related Pages
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

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_service | boost::asio::io_service to handle the asynchronous requests
  ip_address | ip address struct
  port | port to which data is sent
  disable_loopback | disable 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:

  data | arbitrary binary data to write
  bytes | number of bytes to write

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

- udpsender.h