diff --git a/server.c b/server.c index e11cc9aff70f847992ca8d70c18aa9d48acc54a1..e638ec62ba7fb567b40d962deebcdfe8d241bcaa 100644 --- a/server.c +++ b/server.c @@ -396,7 +396,21 @@ bool show_start_page(int sockfd, char* username) { } bool show_accepted_page(int sockfd) { - return true; + int list_len = 0; + if (sockfd == p1_sockfd) list_len = p1_guess_len; + else if (sockfd == p2_sockfd) + list_len = p2_guess_len; + + char* added_prefix = "<p>"; + int added_prefix_length = strlen(added_prefix); + char* added_suffix = "</p>\n\n"; + int added_suffix_length = sizeof(added_suffix); + + for (int i = 0; i < list_len; i++) { + + } + + return show_modified_page(sockfd, ACCEPTED_PAGE, added, 212); } void print_buff(char* request) {