From f185d89bc2ca3a1d657b40e8aa0dae5e4da17871 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Tue, 21 Feb 2023 07:41:35 +0100 Subject: [PATCH] added underline to client startup --- src/chat/client/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat/client/main.c b/src/chat/client/main.c index 3938af1..73aa0ba 100644 --- a/src/chat/client/main.c +++ b/src/chat/client/main.c @@ -34,11 +34,14 @@ int main(void) server_addr.sin_port = htons(SERVER_PORT); server_addr.sin_addr.s_addr = INADDR_ANY; + //GET IP printf("Welcome.\n\nEnter IP Address:\n>>> "); getline(&line, &line_length, stdin); server_addr.sin_addr.s_addr = inet_addr(line); + printf("###################\n\n"); + int connectStatus = connect(listen_socket, (SA *) &server_addr, sizeof(server_addr)); //CONNECT if (connectStatus < 0) why2_die("Connecting failed.");