X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=udp_send.c;h=273b6a42e4c26e21abf4211a7e528ba5a7629a9c;hp=a21f478d78dd3c3c56f14196264ce8424b107254;hb=44aa9a29ecc951d74a28bd79462cb0f9b628523e;hpb=1673dedb71f81a93e282bb09d6ae7911b82d7503 diff --git a/udp_send.c b/udp_send.c index a21f478d..273b6a42 100644 --- a/udp_send.c +++ b/udp_send.c @@ -7,9 +7,12 @@ /** \file udp_send.c Para_server's udp sender. */ +#include #include #include +#include #include +#include #include "server.cmdline.h" #include "para.h" @@ -178,9 +181,7 @@ static int udp_init_session(struct udp_target *ut) } add_close_on_fork_list(ut->fd); ut->cq = cq_new(UDP_CQ_BYTES); - PARA_NOTICE_LOG("sending to udp %s#%d using fec parms %d:%d:%d\n", - ut->host, ut->port , ut->fcp.max_slice_bytes, - ut->fcp.data_slices_per_group, ut->fcp.slices_per_group); + PARA_NOTICE_LOG("sending to udp %s#%d\n", ut->host, ut->port); return 1; } @@ -289,9 +290,13 @@ static char *udp_info(void) list_for_each_entry(ut, &targets, node) { bool is_v6 = strchr(ut->host, ':') != NULL; - char *tmp = make_message("%s%s%s%s:%d ", tgts ? : "", - is_v6 ? "[" : "", ut->host, - is_v6 ? "]" : "", ut->port); + char *tmp = make_message("%s%s%s%s:%d/%u:%u:%u ", tgts ? : "", + is_v6 ? "[" : "", ut->host, + is_v6 ? "]" : "", ut->port, + ut->fcp.max_slice_bytes, + ut->fcp.data_slices_per_group, + ut->fcp.slices_per_group + ); free(tgts); tgts = tmp; } @@ -344,7 +349,7 @@ static char *udp_help(void) /** * The init function of para_server's udp sender. * - * \param s Pointer to the http sender struct. + * \param s Pointer to the udp sender struct. * * It initializes all function pointers of \a s and the list of udp targets. */