your variable 'nread' is declared as 'char' which means the largest positive value it can hold is 127. the 'read' function returns ssize_t. chances are you are overflowing nread so your loop doesn't...
Type: Posts; User: dmh2000
your variable 'nread' is declared as 'char' which means the largest positive value it can hold is 127. the 'read' function returns ssize_t. chances are you are overflowing nread so your loop doesn't...
I think i understand what you are trying to do, since most of the comments are not in english I'm guess a little.
in your client you are assigning the return value of 'read' to 'bread'. that...