From ae665c378df1ea2ec0965a01f906f8f2334512d8 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Thu, 8 Nov 2018 23:44:15 +0000 Subject: [PATCH] Add test target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 02af61d..e623450 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,9 @@ all: getpeername +# requires busybox nc +test: + nc -s 127.1.33.7 -l -p 1234 -e ./getpeername & + nc -w 1 127.1.33.7 1234 + clean: rm getpeername