I have this simple snippet from client:
... //streamfd (usually stdin) is readable if (FD_ISSET(streamfd, &rset)) { if ((bytes