summaryrefslogtreecommitdiff
path: root/server/multicast.cc
diff options
context:
space:
mode:
authordeva <deva>2006-08-16 23:49:23 +0000
committerdeva <deva>2006-08-16 23:49:23 +0000
commit347b1d8ed3a4f780f3a5c0d57a04eab05ca517a2 (patch)
treedc21975923fb440c78ee4bbffc645a138071978f /server/multicast.cc
parent6c07f9219bed6ccddc9b65ad40414cf0a9f7d633 (diff)
Replaced the old MiavConfig class with the new Configuration class in all the the appropriate places.
Crippled the MulticastConfiguration class. This must be rewritten to use the new configuration interface.
Diffstat (limited to 'server/multicast.cc')
-rw-r--r--server/multicast.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/multicast.cc b/server/multicast.cc
index 2bb6df1..d78f68b 100644
--- a/server/multicast.cc
+++ b/server/multicast.cc
@@ -24,12 +24,11 @@
* along with MIaV; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#include "config.h"
#include "multicast.h"
#include "multicast_configuration.h"
-#include "miav_config.h"
+#include "configuration.h"
#include "info.h"
#include <sys/socket.h>
@@ -59,7 +58,9 @@ Multicast::Multicast(mcastconf_t &mcclientconf)
mcclientconf.addr.c_str(),
mcclientconf.port);
- int mtu = MIaV::config->readInt("udp_packet_size");
+ int mtu;
+ if(MIaV::config->get("udp_packet_size", &mtu))
+ MIaV::info->error("Could not read the symbol [udp_packet_size] from the conf file!");
// Create buffer with the size of MTU
// socklen_t mtu_sz;