X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ortp_send.c;h=084fdf5753aaaaa610b9209235bccae803dd3052;hp=0bccca98f8f844981dceb86a0b3e8fedc2cc425d;hb=da0a1b59045898dd73d6737ccd4f4af6fb29ad7f;hpb=471684761a2039bbc89aa1e3c33c62de6bef86cf diff --git a/ortp_send.c b/ortp_send.c index 0bccca98..084fdf57 100644 --- a/ortp_send.c +++ b/ortp_send.c @@ -10,12 +10,16 @@ #include #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) @@ -159,13 +163,15 @@ static void ortp_send(long unsigned current_chunk, long unsigned chunks_sent, { struct ortp_target *ot, *tmp; size_t sendbuf_len; - size_t header_len = 0; + unsigned header_len = 0; int packet_type = ORTP_DATA; char *sendbuf, *header_buf = NULL; struct timeval *chunk_tv; if (self->status != SENDER_ON) return; + +// PARA_NOTICE_LOG("sending %lu\n", current_chunk); chunk_tv = vss_chunk_time(); if (!chunk_tv) return; @@ -287,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)