Can we assume that the command read from the server contains only one newline character (\n)? #302
Unanswered
hotsunchip
asked this question in
[Project Q&A] 1. Application Layer (Socket)
Replies: 1 comment
-
|
Yes, the singular \n assumption can be made. I've made my program work without consideration for the special cases mentioned. If I am not mistaken, the skeleton code for all the assignments is found in the KENSv3-master\KENSv3-master\app folder, and the .cpp files are distinct. You're at liberty to check whether such cases will need to be implemented then, as I haven't made the effort to check myself 😆. Hope this helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are attempting to handle command read with multiple (or no) newline characters, but stuck at this point. (We concluded that to achieve that, we should use select(). Is it right approach?)
Also, I would like to know if the code we wrote this time will be used in the next PA, and if there will be a need to implement the select() and multiple newline character handling I mentioned earlier in the future.
Beta Was this translation helpful? Give feedback.
All reactions