X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=8653c330e6b0eb24bacb239c3904062105ea3128;hp=448ddfec0f83692f0fa144487418df3a9b02fad7;hb=3bbec8ac8ab1879d24acbff447850c0e3872daa7;hpb=1673dedb71f81a93e282bb09d6ae7911b82d7503 diff --git a/send_common.c b/send_common.c index 448ddfec..8653c330 100644 --- a/send_common.c +++ b/send_common.c @@ -159,8 +159,8 @@ void send_chunk(struct sender_client *sc, struct sender_status *ss, if (ret < 0) goto out; } - sc->header_sent = 1; } + sc->header_sent = 1; ret = send_queued_chunks(sc->fd, sc->cq, max_bytes_per_write); if (ret < 0) { shutdown_client(sc, ss); @@ -389,8 +389,9 @@ char *generic_sender_help(void) { return make_message( "usage: {on|off}\n" - "usage: {allow|deny} IP mask\n" - "example: allow 127.0.0.1 32\n" + "usage: {allow|deny} IP[/netmask]\n" + " where mask defaults to 32\n" + "example: allow 192.168.0.1/24\n" ); } @@ -440,6 +441,21 @@ out: return ret; } +/** + * Parse a FEC URL string. + * + * \param arg the URL string to parse. + * \param scd The structure containing host, port and the FEC parameters. + * + * \return Standard. + * + * A FEC URL consists of an ordinary URL string according to RFC 3986, + * optionally followed by a slash and the three FEC parameters slice_size, + * data_slices_per_group and slices_per_group. The three FEC parameters are + * separated by colons. + * + * \sa \ref parse_url(). + */ int parse_fec_url(const char *arg, struct sender_command_data *scd) { int ret;