/*
- * Copyright (C) 2005-2006 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2007 Andre Noll <maan@systemlinux.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "error.h"
#include "stdout.h"
-struct gengetopt_args_info conf;
+struct recv_args_info conf;
INIT_RECV_ERRLISTS;
{
int i;
- if (cmdline_parser(argc, argv, &conf))
+ if (recv_cmdline_parser(argc, argv, &conf))
return NULL;
if (conf.list_receivers_given) {
printf("available receivers: ");
return check_receiver_arg(conf.receiver_arg, receiver_num);
}
-void rn_event_handler(struct task *t)
+static void rn_event_handler(struct task *t)
{
+ struct receiver_node *rn = t->private_data;
PARA_NOTICE_LOG("%s\n", PARA_STRERROR(-t->ret));
+ rn->eof = 1;
unregister_task(t);
}
sprintf(rn.task.status, "receiver node");
register_task(&rn.task);
-
ret = sched(&s);
out:
if (r_opened)