From 347b1d8ed3a4f780f3a5c0d57a04eab05ca517a2 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 16 Aug 2006 23:49:23 +0000 Subject: 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. --- server/multicast.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'server/multicast.cc') 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 @@ -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; -- cgit v1.2.3