distTLI/Makefile
include ../Makefile.def
ALL = tcpserver tcpclient udpserver udpclient \
ptcpserver ptcpclient pudpserver pudpclient \
potcpserver potcpclient
all: $(COMMON) $(ALL)
tcpserver: tcpserver.o acceptcall.o
$(LINK.c) $< tcpserver.o acceptcall.o strecho.o $(LOADLIBES) $(LDLIBS) -o $@
$(STRIP) $@
ptcpserver: ptcpserver.o acceptcall.o
$(LINK.c) $< ptcpserver.o acceptcall.o $(LOADLIBES) $(LDLIBS) -o $@
$(STRIP) $@
potcpserver: potcpserver.o acceptcall.o
$(LINK.c) $< potcpserver.o acceptcall.o $(LOADLIBES) $(LDLIBS) -o $@
$(STRIP) $@
# generate performance data
dataget:
#
# local TCP / UDP
#
# measure (local) UDP throughput and ops/s
pudpserver 6541 &
sleep 3
pudpclient 127.0.0.1 6541
#
# measure (local) TCP throughput
ptcpserver 6543 &
sleep 3
ptcpclient 127.0.0.1 6543
#
# measure overhead of establishing a (local) TCP connection
potcpserver 6542 &
sleep 3
potcpclient 127.0.0.1 6542
include ../Makefile.def2