added underline to client startup
This commit is contained in:
parent
76448104b7
commit
f185d89bc2
@ -34,11 +34,14 @@ int main(void)
|
|||||||
server_addr.sin_port = htons(SERVER_PORT);
|
server_addr.sin_port = htons(SERVER_PORT);
|
||||||
server_addr.sin_addr.s_addr = INADDR_ANY;
|
server_addr.sin_addr.s_addr = INADDR_ANY;
|
||||||
|
|
||||||
|
//GET IP
|
||||||
printf("Welcome.\n\nEnter IP Address:\n>>> ");
|
printf("Welcome.\n\nEnter IP Address:\n>>> ");
|
||||||
getline(&line, &line_length, stdin);
|
getline(&line, &line_length, stdin);
|
||||||
|
|
||||||
server_addr.sin_addr.s_addr = inet_addr(line);
|
server_addr.sin_addr.s_addr = inet_addr(line);
|
||||||
|
|
||||||
|
printf("###################\n\n");
|
||||||
|
|
||||||
int connectStatus = connect(listen_socket, (SA *) &server_addr, sizeof(server_addr)); //CONNECT
|
int connectStatus = connect(listen_socket, (SA *) &server_addr, sizeof(server_addr)); //CONNECT
|
||||||
|
|
||||||
if (connectStatus < 0) why2_die("Connecting failed.");
|
if (connectStatus < 0) why2_die("Connecting failed.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user