Lines Matching defs:in
34 #include <netinet/in.h>
141 char *in; /* the receiving buffer */
151 char *location; /* the new URL in case of redirect */
164 static unsigned int timeout = 60;/* the select() timeout in seconds */
385 * Returns an HTTP context or NULL in case of error.
424 if (ctxt->in != NULL) xmlFree(ctxt->in);
520 * This is a blocking call (but it blocks in select(), not read()).
522 * Returns the number of byte read or -1 in case of error.
537 if (ctxt->in == NULL) {
538 ctxt->in = (char *) xmlMallocAtomic(65000 * sizeof(char));
539 if (ctxt->in == NULL) {
545 ctxt->inptr = ctxt->content = ctxt->inrptr = ctxt->in;
547 if (ctxt->inrptr > ctxt->in + XML_NANO_HTTP_CHUNK) {
548 int delta = ctxt->inrptr - ctxt->in;
551 memmove(ctxt->in, ctxt->inrptr, len);
556 if ((ctxt->in + ctxt->inlen) < (ctxt->inptr + XML_NANO_HTTP_CHUNK)) {
557 int d_inptr = ctxt->inptr - ctxt->in;
558 int d_content = ctxt->content - ctxt->in;
559 int d_inrptr = ctxt->inrptr - ctxt->in;
560 char *tmp_ptr = ctxt->in;
563 ctxt->in = (char *) xmlRealloc(tmp_ptr, ctxt->inlen);
564 if (ctxt->in == NULL) {
570 ctxt->inptr = ctxt->in + d_inptr;
571 ctxt->content = ctxt->in + d_content;
572 ctxt->inrptr = ctxt->in + d_inrptr;
645 * Read one line in the HTTP server output, usually for extracting
695 * Returns -1 in case of failure, the file descriptor number otherwise
847 * Returns -1 in case of failure, the file descriptor number otherwise
1035 * Returns -1 in case of failure, the file descriptor number otherwise
1222 * Returns NULL in case of failure, otherwise a request handler.
1242 * Returns NULL in case of failure, otherwise a request handler.
1260 * and saves them in @dest. This is a blocking call.
1334 * @contentType: the Content-Type information IN and OUT
1343 * Returns NULL in case of failure, otherwise a request handler.
1385 "Failed to identify host in URI");
1590 * @contentType: the Content-Type information IN and OUT
1598 * Returns NULL in case of failure, otherwise a request handler.
1617 * and save it's content in the file.
1619 * Returns -1 in case of failure, 0 incase of success. The contentType,
1669 * Returns -1 in case of failure, 0 incase of success.
1745 * a value of -1 indicates that the content length element was not included in
1774 * Provides the specified encoding if specified in the HTTP headers.
1789 * Provides the specified Mime-Type if specified in the HTTP headers.
1884 "%s : HTTP support not compiled in\n", argv[0]);