sendByteBuffer should return number of sent bytes