- #1
zeion
- 466
- 1
Hi I'm trying to write a server that will ask for a client's name when they connect then store that name as a string with the client struct. I got everything set up but when the client types one letter it is immediately processed without waiting for a new line input. How can I make it wait for a new line and store all characters of the name in the buffer before processing?
Basically the server needs to work in noncanonical mode while able to process a whole string
Basically the server needs to work in noncanonical mode while able to process a whole string
Last edited: