X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=udp_send.c;h=4580f009b3cb4b75d2f9e4c3a4e274cfc230e387;hp=bc23831147d957c548fcfece7b97e3f13f20c7a6;hb=76fc8685059c8bd66686952d0e5cb8bba86bcdca;hpb=85094cd802bdb606d4e2bf7ed66dec51db2a0953 diff --git a/udp_send.c b/udp_send.c index bc238311..4580f009 100644 --- a/udp_send.c +++ b/udp_send.c @@ -1,18 +1,22 @@ /* - * Copyright (C) 2005-2011 Andre Noll + * Copyright (C) 2005-2013 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" @@ -288,7 +292,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