X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ortp_send.c;h=084fdf5753aaaaa610b9209235bccae803dd3052;hp=e17c84746ea4215d833dba399c3e423a64789afb;hb=1b5148109a273e7a30255ab3a705ca49f71e046f;hpb=cb6d1dfb9e4067229a4bbde0abd05784d97ef14b diff --git a/ortp_send.c b/ortp_send.c index e17c8474..084fdf57 100644 --- a/ortp_send.c +++ b/ortp_send.c @@ -11,13 +11,15 @@ #include "server.cmdline.h" #include "para.h" +#include "error.h" +#include "string.h" #include "afh.h" +#include "afs.h" #include "server.h" #include "vss.h" #include "send.h" #include "list.h" #include "ortp.h" -#include "string.h" /** \cond convert in_addr to ascii */ #define TARGET_ADDR(oc) inet_ntoa((oc)->addr) @@ -168,6 +170,8 @@ static void ortp_send(long unsigned current_chunk, long unsigned chunks_sent, if (self->status != SENDER_ON) return; + +// PARA_NOTICE_LOG("sending %lu\n", current_chunk); chunk_tv = vss_chunk_time(); if (!chunk_tv) return; @@ -289,7 +293,7 @@ static void ortp_init_target_list(void) if (!p) goto err; *p = '\0'; - if (!inet_aton(arg, &addr)) + if (!inet_pton(AF_INET, arg, &addr)) goto err; port = atoi(++p); if (port < 0 || port > 65535)