From 40f45b9e3bcd332740236914380587ef33f70c14 Mon Sep 17 00:00:00 2001 From: Paul ALNET Date: Thu, 7 Mar 2024 11:22:11 +0100 Subject: [PATCH] feat(v1): usage message --- tsock_v1.c | 72 ++++++++++++++++++++++++++---------------------------- 1 file changed, 34 insertions(+), 38 deletions(-) diff --git a/tsock_v1.c b/tsock_v1.c index e3cce3d..65f5977 100644 --- a/tsock_v1.c +++ b/tsock_v1.c @@ -19,23 +19,12 @@ #include #define BASE_SIZE 10 -void construire_message(char *message, char motif, int lg) { - int i; - for (i=0;i [-ps] [host] \n"); + printf("parameters: host With -s, address of the host to connect to. Required with -s.\n"); + printf(" port Port to connect or bind to. Required.\n"); + printf("options: -p Runs a TCP/UDP sink. Incompatible with -s.\n"); + printf(" -s Runs a TCP/UDP faucet. Incompatible with -p.\n"); + printf(" -u Use UDP instead of TCP. Required.\n"); +} +