Skip to content

Luis M#313

Open
luiscmartinez wants to merge 5 commits intobloominstituteoftechnology:masterfrom
luiscmartinez:master
Open

Luis M#313
luiscmartinez wants to merge 5 commits intobloominstituteoftechnology:masterfrom
luiscmartinez:master

Conversation

@luiscmartinez
Copy link

No description provided.

"Content-Length: %d\n"
"Content-Type: %s\n\n"
"%s\n",
header, formatted_time, content_length, content_type, body);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! You had all of this worked out yesterday, you just had to do the handlehttp.

srand(getpid() + time(NULL));
char res_body[8];

sprintf(res_body, "%d\n", (rand() % 20) + 1);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job with this and the call to srand().

return;
}

sscanf(request, "%s %s %s", request_type, resource, request_protocol);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks spot on!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants