X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=udp_send.c;h=35cb61358bb616a0733224c2f4494b72989e9c02;hb=a6cae51e8c60fa9d92b206d0a51483f75b47735a;hp=1155bcb4f107da7a71ce869d5f381644b231a626;hpb=9de1287d67c9562e9140c6dc7deb0c01c4e10cc0;p=paraslash.git diff --git a/udp_send.c b/udp_send.c index 1155bcb4..35cb6135 100644 --- a/udp_send.c +++ b/udp_send.c @@ -1,25 +1,27 @@ /* - * Copyright (C) 2005-2012 Andre Noll + * Copyright (C) 2005-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file udp_send.c Para_server's udp sender. */ - +#include +#include #include -#include +#include #include #include #include -#include +#include +#include +#include #include "server.cmdline.h" #include "para.h" #include "error.h" #include "string.h" #include "afh.h" -#include "afs.h" #include "server.h" #include "list.h" #include "send.h" @@ -288,7 +290,7 @@ static void udp_send_fec(struct sender_client *sc, char *buf, size_t len) ret = udp_check_socket_state(sc); if (ret < 0) goto fail; - ret = write_nonblock(sc->fd, buf, len); + ret = xwrite(sc->fd, buf, len); if (ret == -ERRNO_TO_PARA_ERROR(ECONNREFUSED)) { /* * Happens if meanwhile an ICMP Destination / Port Unreachable