displaying welcome message on client
This commit is contained in:
parent
329c3c9cd2
commit
f539a4bd71
@ -873,6 +873,7 @@ void *why2_listen_server(void *socket)
|
|||||||
int max_uname = -1;
|
int max_uname = -1;
|
||||||
int min_uname = -1;
|
int min_uname = -1;
|
||||||
int max_tries = -1;
|
int max_tries = -1;
|
||||||
|
char *server_name = NULL;
|
||||||
|
|
||||||
printf(">>> ");
|
printf(">>> ");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
@ -896,7 +897,11 @@ void *why2_listen_server(void *socket)
|
|||||||
max_uname = get_int_from_json_string(read, "max_uname");
|
max_uname = get_int_from_json_string(read, "max_uname");
|
||||||
min_uname = get_int_from_json_string(read, "min_uname");
|
min_uname = get_int_from_json_string(read, "min_uname");
|
||||||
max_tries = get_int_from_json_string(read, "max_tries");
|
max_tries = get_int_from_json_string(read, "max_tries");
|
||||||
|
server_name = get_string_from_json_string(read, "server_name");
|
||||||
|
|
||||||
|
printf(WHY2_CLEAR_AND_GO_UP WHY2_CLEAR_AND_GO_UP "Successfully connected to %s.\n\n\n", server_name); //WELCOME
|
||||||
|
|
||||||
|
why2_deallocate(server_name);
|
||||||
continuing = 1;
|
continuing = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user