mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 23:44:41 +00:00
84393aa863
netcat, nc6 and socat are only partially convenient as reproducers for state machine bugs, but when it comes to adding delays, forcing resets, waiting for data to be acked, they become useless. The purpose of this utility is to be able to easily script some TCP operations such as connect, accept, send, receive, shutdown and of course pauses.
12 lines
177 B
Makefile
12 lines
177 B
Makefile
CC = gcc
|
|
OPTIMIZE = -O2 -g
|
|
DEFINE =
|
|
INCLUDE =
|
|
OBJS = tcploop
|
|
|
|
tcploop: tcploop.c
|
|
$(CC) $(OPTIMIZE) $(DEFINE) $(INCLUDE) -o $@ $^
|
|
|
|
clean:
|
|
rm -f $(OBJS) *.[oas] *~
|