Get the size of sendig buffer. it implies that there is a message to send if the retval is greater thatn 0.