Skip to content

Commit

Permalink
Rename event-test.c to event-read-fifo.c.
Browse files Browse the repository at this point in the history
Treat it as an example of reading from a named pipe, not an initial
teaching tool.
  • Loading branch information
rosslagerwall committed Mar 19, 2012
1 parent c0dacd2 commit a5b370a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ libevent_openssl.pc
/evconfig-private.h

/sample/dns-example
/sample/event-test
/sample/event-read-fifo
/sample/hello-world
/sample/http-server
/sample/le-proxy
Expand Down
4 changes: 2 additions & 2 deletions sample/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ AUTOMAKE_OPTIONS = foreign no-dependencies
LDADD = $(LIBEVENT_GC_SECTIONS) ../libevent.la
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/compat -I$(top_srcdir)/include -I../include

noinst_PROGRAMS = event-test time-test signal-test dns-example hello-world http-server
noinst_PROGRAMS = event-read-fifo time-test signal-test dns-example hello-world http-server

event_test_SOURCES = event-test.c
event_read_fifo_SOURCES = event-read-fifo.c
time_test_SOURCES = time-test.c
signal_test_SOURCES = signal-test.c
dns_example_SOURCES = dns-example.c
Expand Down
11 changes: 6 additions & 5 deletions sample/event-test.c → sample/event-read-fifo.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/*
* XXX This sample code was once meant to show how to use the basic Libevent
* interfaces, but it never worked on non-Unix platforms. It should probably
* be removed or replaced with something better.
* This sample code shows how to use Libevent to read from a named pipe.
* XXX This code could make better use of the Libevent interfaces.
* XXX This code may not work on Windows.
*
* Compile with:
* cc -I/usr/local/include -o event-test event-test.c -L/usr/local/lib -levent
* On UNIX, compile with:
* cc -I/usr/local/include -o event-read-fifo event-read-fifo.c \
* -L/usr/local/lib -levent
*/

#include <event2/event-config.h>
Expand Down

0 comments on commit a5b370a

Please sign in to comment.