How to read data from cin and send on socket while async_accepting from that socket?

Use a posix::stream_descriptor to read from STDIN_FILENO See this previous question and answer for a more complete example and solution.

I want to modify the server so that it can also accept data from the command line and send that across the packet to the client Use a posix::stream_descriptor to read from STDIN_FILENO. See this previous question and answer for a more complete example and solution.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions