version 1.30, 2000/10/12 23:23:35
|
version 1.31, 2000/10/21 08:14:57
|
Line 403 xmlNanoHTTPFreeCtxt(xmlNanoHTTPCtxtPtr c
|
Line 403 xmlNanoHTTPFreeCtxt(xmlNanoHTTPCtxtPtr c
|
|
|
static void |
static void |
xmlNanoHTTPSend(xmlNanoHTTPCtxtPtr ctxt) { |
xmlNanoHTTPSend(xmlNanoHTTPCtxtPtr ctxt) { |
if (ctxt->state & XML_NANO_HTTP_WRITE) |
if (ctxt->state & XML_NANO_HTTP_WRITE) { |
ctxt->last = send(ctxt->fd, ctxt->outptr, strlen(ctxt->outptr), 0); |
int total_sent = 0; |
|
while (total_sent <strlen(ctxt->outptr)) { |
|
int nsent = send(ctxt->fd, ctxt->outptr+total_sent, |
|
strlen(ctxt->outptr)-total_sent, 0); |
|
if (nsent>0) |
|
total_sent += nsent; |
|
} |
|
|
|
ctxt->last = total_sent; |
|
} |
} |
} |
|
|
/** |
/** |