MINOR: spoe: Add support for pipelining/async capabilities in the SPOA example

Now, we can use the option '-c' to enable the support of a capability. By
default, all capabilities are disabled. For example:

  $> ./spoa -c async -c pipelining

In addition, it is also possible to set the maximum frame size supported by your
agent (-m) and to add a delay in frames processing (-t).
This commit is contained in:
Christopher Faulet 2016-12-21 08:58:16 +01:00 committed by Willy Tarreau
parent a1cda02995
commit f95b111dde
2 changed files with 1384 additions and 536 deletions

View File

@ -6,13 +6,15 @@ CC = gcc
LD = $(CC)
CFLAGS = -g -O2 -Wall -Werror -pthread
LDFLAGS = -lpthread
LDFLAGS = -lpthread -levent -levent_pthreads
INCS += -I../../include
LIBS =
OBJS = spoa.o
spoa: $(OBJS)
$(LD) $(LDFLAGS) -o $@ $^
$(LD) $(LDFLAGS) $(LIBS) -o $@ $^
install: spoa
install spoa $(DESTDIR)$(BINDIR)
@ -21,4 +23,4 @@ clean:
rm -f spoa $(OBJS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
$(CC) $(CFLAGS) $(INCS) -c -o $@ $<

File diff suppressed because it is too large Load Diff