Skip to content

Commit

Permalink
sample/becat: bufferevent cat, ncat/nc/telnet analog
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Mar 16, 2019
1 parent 5357c3d commit d5b24cc
Show file tree
Hide file tree
Showing 5 changed files with 634 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -433,6 +433,7 @@ CHECK_FUNCTION_EXISTS_EX(port_create EVENT__HAVE_PORT_CREATE)
CHECK_FUNCTION_EXISTS_EX(sendfile EVENT__HAVE_SENDFILE)
CHECK_FUNCTION_EXISTS_EX(sigaction EVENT__HAVE_SIGACTION)
CHECK_FUNCTION_EXISTS_EX(signal EVENT__HAVE_SIGNAL)
CHECK_FUNCTION_EXISTS_EX(strsignal EVENT__HAVE_STRSIGNAL)
CHECK_FUNCTION_EXISTS_EX(splice EVENT__HAVE_SPLICE)
CHECK_FUNCTION_EXISTS_EX(strlcpy EVENT__HAVE_STRLCPY)
CHECK_FUNCTION_EXISTS_EX(strsep EVENT__HAVE_STRSEP)
Expand Down Expand Up @@ -965,6 +966,7 @@ if (NOT EVENT__DISABLE_SAMPLES)
sample/hostcheck.c)
add_sample_prog(ON le-proxy
sample/le-proxy.c)
add_sample_prog(ON becat sample/becat.c ${WIN32_GETOPT})
endif()

set(SAMPLES_WOPT
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -380,6 +380,7 @@ AC_CHECK_FUNCS([ \
setrlimit \
sigaction \
signal \
strsignal \
splice \
strlcpy \
strsep \
Expand Down
3 changes: 3 additions & 0 deletions event-config.h.cmake
Expand Up @@ -253,6 +253,9 @@
/* Define to 1 if you have the `signal' function. */
#cmakedefine EVENT__HAVE_SIGNAL 1

/* Define to 1 if you have the `strsignal' function. */
#cmakedefine EVENT__HAVE_STRSIGNAL 1

/* Define to 1 if you have the `splice' function. */
#cmakedefine EVENT__HAVE_SPLICE 1

Expand Down

0 comments on commit d5b24cc

Please sign in to comment.