diff options
Diffstat (limited to 'src/multicast.cc')
-rw-r--r-- | src/multicast.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/multicast.cc b/src/multicast.cc index 0072c19..2f3e7a8 100644 --- a/src/multicast.cc +++ b/src/multicast.cc @@ -38,6 +38,8 @@ #include <arpa/inet.h> #include <sys/types.h> +#include <string.h> + // For IP_MTU //#include <linux/in.h> //#ifndef IP_MTU @@ -106,7 +108,9 @@ int Multicast::Write(void* buf, int size) if(left == 0) { // info->info("Sending full packet"); - write(sock, udp_buffer, udp_buffer_size); + if(write(sock, udp_buffer, udp_buffer_size) != udp_buffer_size) { + info->error("Could not write entire buffer to socket."); + } left = udp_buffer_size; udp_buffer_pointer = udp_buffer; } |