summaryrefslogtreecommitdiffstats
path: root/src/UdpSocket.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-11-27 16:27:08 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-11-27 16:27:08 +0100
commit79a788b6139f121e30816c046f7ff2c4320d5a0b (patch)
treea39551dec8baa012d617e739ed13066b232c2c81 /src/UdpSocket.h
parentc43aed07562dc2bd3d2dfd6065df3ce564cf3cfa (diff)
downloaddabmux-79a788b6139f121e30816c046f7ff2c4320d5a0b.tar.gz
dabmux-79a788b6139f121e30816c046f7ff2c4320d5a0b.tar.bz2
dabmux-79a788b6139f121e30816c046f7ff2c4320d5a0b.zip
Add source and ttl settings for EDI
Diffstat (limited to 'src/UdpSocket.h')
-rw-r--r--src/UdpSocket.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/UdpSocket.h b/src/UdpSocket.h
index e23401c..849bed4 100644
--- a/src/UdpSocket.h
+++ b/src/UdpSocket.h
@@ -1,6 +1,9 @@
/*
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Her Majesty the
Queen in Right of Canada (Communications Research Center Canada)
+
+ Copyright (C) 2015 Matthias P. Braendli
+ http://www.opendigitalradio.org
*/
/*
This file is part of ODR-DabMux.
@@ -58,7 +61,7 @@ class UdpPacket;
* A UDP socket is the sending or receiving point for a packet delivery service.
* Each packet sent or received on a datagram socket is individually
* addressed and routed. Multiple packets sent from one machine to another may
- * be routed differently, and may arrive in any order.
+ * be routed differently, and may arrive in any order.
* @author Pascal Charest pascal.charest@crc.ca
*/
class UdpSocket {
@@ -77,6 +80,8 @@ class UdpSocket {
int send(std::vector<uint8_t> data, InetAddress destination);
int receive(UdpPacket &packet);
int joinGroup(char* groupname);
+ int setMulticastSource(const char* source_addr);
+ int setMulticastTTL(int ttl);
/**
* Connects the socket on a specific address. Only data from this address
* will be received.