Lines Matching refs:outbuf_length
83 size_t inbuf_length, outbuf_length;
140 c->inbuf_length = c->outbuf_length = 0;
161 k = sizeof(c->outbuf) - c->outbuf_length;
164 memcpy(c->outbuf + c->outbuf_length, data, m);
165 c->outbuf_length += m;
407 if ((events & AVAHI_WATCH_OUT) && c->outbuf_length > 0) {
410 if ((r = write(c->fd, c->outbuf, c->outbuf_length)) < 0) {
416 assert((size_t) r <= c->outbuf_length);
417 c->outbuf_length -= r;
419 if (c->outbuf_length)
420 memmove(c->outbuf, c->outbuf + r, c->outbuf_length - r);
422 if (c->outbuf_length == 0 && c->state == CLIENT_DEAD) {
430 (c->outbuf_length > 0 ? AVAHI_WATCH_OUT : 0) |