I am writing a chat server code using select. In the client side I need to read input either from the user or from the server. The thing is , when the client waits on a select() and if I type something ,the client should not be disturbed by the message from the other client until I press enter... is there any way to solve this?