diff options
Diffstat (limited to 'server/multicast.cc')
-rw-r--r-- | server/multicast.cc | 7 |
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; |