Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unified hello handling with chat server requirements #35

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

drumglow
Copy link
Contributor

@drumglow drumglow commented Apr 9, 2024

I made two changes to the handleHello function, so that it works as specified in the lab manual, in particular it did not fulfill
PR6 and PR4.

  • PR6: If a user that has already logged in attempts to send a HELLO-FROM log-in request, the server must respond with a BAD-RQST-HDR message.

  • PR4: If a user logs in with an invalid username, the server must send a BAD-RQST-BODY message in response.

the change to meet pr6 is necessary to allow the client to retransmit HELLO-FROM and get a suitable acknowledgement if the first HELLO they received was corrupted.
VUnetid= tfr216

Copy link
Collaborator

@fzovpec fzovpec left a comment

Choose a reason for hiding this comment

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

Hello. Thank you very much for your contribution. Indeed, current implementation does not correspond to the server requirements. You have shown a great ability to analyze and correspond the textual requirements to the code implementation, and that is exactly what we are looking for! Great job! I have awarded you points on Canvas

@fzovpec fzovpec merged commit aa90168 into atlarge-research:main Apr 11, 2024
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