Lines Matching refs:res_buf
138 free(h->res_buf);
1152 if(!h->res_buf)
1155 h->res_buf = (char *)malloc(templen);
1158 res.data = h->res_buf;
1187 h->res_buf = (char *)realloc(h->res_buf, (h->res_buflen + bodylen));
1201 memcpy(h->res_buf + h->res_buflen, body, bodylen);
1216 DPRINTF(E_DEBUG, L_HTTP, "HTTP RESPONSE: %.*s\n", h->res_buflen, h->res_buf);
1217 n = send(h->socket, h->res_buf, h->res_buflen, 0);
1220 DPRINTF(E_ERROR, L_HTTP, "send(res_buf): %s\n", strerror(errno));
1225 DPRINTF(E_ERROR, L_HTTP, "send(res_buf): %d bytes sent (out of %d)\n",
1238 DPRINTF(E_ERROR, L_HTTP, "send(res_buf): %s\n", strerror(errno));
1243 DPRINTF(E_ERROR, L_HTTP, "send(res_buf): %d bytes sent (out of %d)\n",