Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jelu committed Feb 23, 2017
1 parent 1fbbacc commit f7000b9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2017-02-23 Jerry Lundström

Release 1.1.0 - now with `-B`ackends!

9911230 Add libuv

2017-02-23 Jerry Lundström

Release 1.0.0 - dropping all your packets since 2017
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ High performance UDP/TCP server that... just drops everything you send to it

## Requirements

- libev
- libev-dev || libuv1-dev

## Build

Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

AC_PREREQ(2.61)
AC_INIT([dumdumd], [1.0.0], [[email protected]], [dumdumd], [https://github.com/DNS-OARC/dumdumd/issues])
AC_INIT([dumdumd], [1.1.0], [[email protected]], [dumdumd], [https://github.com/DNS-OARC/dumdumd/issues])
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
AC_CONFIG_SRCDIR([src/dumdumd.c])
AC_CONFIG_HEADER([src/config.h])
Expand Down
11 changes: 11 additions & 0 deletions src/dumdumd.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ static void usage(void) {
printf(
"usage: %s [options] [ip] <port>\n"
/* -o description .*/
" -B ackend Select backend: ev, uv (default)\n"
" -u Use UDP\n"
" -t Use TCP\n"
" Using both UDP and TCP if none of the above options are used\n"
Expand Down Expand Up @@ -266,12 +267,22 @@ int main(int argc, char* argv[]) {
switch (opt) {
case 'B':
if (!strcmp(optarg, "ev")) {
#ifdef HAVE_LIBEV
use_uv = 0;
use_ev = 1;
#else
fprintf(stderr, "No libev support compiled in\n");
return 2;
#endif
}
else if(!strcmp(optarg, "uv")) {
#ifdef HAVE_LIBUV
use_ev = 0;
use_uv = 1;
#else
fprintf(stderr, "No libuv support compiled in\n");
return 2;
#endif
}
break;

Expand Down

0 comments on commit f7000b9

Please sign in to comment.