In linux, or windows socket programming
I know that read returns a value which indicates the number of successfully received number of bytes.
this return value might be less than requested length. (i.e, read(sd, buf, 100) might return 50 if the receive buffer only has 50 bytes)
is it possible that
send(sd, buf, 100);
returns a value between 1~99?? if it is, what is the occasion? I want to know specific example situation.
thank you in advance