version 1.148, 1997/02/06 16:33:50
|
version 1.149, 1997/02/16 17:49:29
|
Line 24
|
Line 24
|
#include "WWWStream.h" |
#include "WWWStream.h" |
#include "WWWTrans.h" |
#include "WWWTrans.h" |
#include "HTReqMan.h" |
#include "HTReqMan.h" |
#include "HTNetMan.h" |
|
#include "HTTPUtil.h" |
#include "HTTPUtil.h" |
#include "HTTPReq.h" |
#include "HTTPReq.h" |
#include "HTTP.h" /* Implements */ |
#include "HTTP.h" /* Implements */ |
Line 519 PRIVATE int stream_pipe (HTStream * me)
|
Line 518 PRIVATE int stream_pipe (HTStream * me)
|
HTResponse * response = HTRequest_response(request); |
HTResponse * response = HTRequest_response(request); |
char *ptr = me->buffer+4; /* Skip the HTTP part */ |
char *ptr = me->buffer+4; /* Skip the HTTP part */ |
me->version = HTNextField(&ptr); |
me->version = HTNextField(&ptr); |
HTHost_setConsumed(net->host, me->buflen - me->startLen); |
HTHost_setConsumed(HTNet_host(net), me->buflen - me->startLen); |
|
|
/* Here we want to find out when to use persistent connection */ |
/* Here we want to find out when to use persistent connection */ |
if (!strncasecomp(me->version, "/1.0", 4)) { |
if (!strncasecomp(me->version, "/1.0", 4)) { |
Line 603 PRIVATE int stream_pipe (HTStream * me)
|
Line 602 PRIVATE int stream_pipe (HTStream * me)
|
HTRequest_outputStream(request), |
HTRequest_outputStream(request), |
request, NO); |
request, NO); |
} else { |
} else { |
|
HTAnchor_clearHeader(HTRequest_anchor(request)); |
me->target = HTStreamStack(WWW_MIME, |
me->target = HTStreamStack(WWW_MIME, |
HTRequest_outputFormat(request), |
HTRequest_outputFormat(request), |
HTRequest_outputStream(request), |
HTRequest_outputStream(request), |
Line 936 PRIVATE int HTTPEvent (SOCKET soc, void
|
Line 936 PRIVATE int HTTPEvent (SOCKET soc, void
|
HTRequest * source = HTRequest_source(request); |
HTRequest * source = HTRequest_source(request); |
HTNet * srcnet = HTRequest_net(source); |
HTNet * srcnet = HTRequest_net(source); |
if (srcnet) { |
if (srcnet) { |
HTHost_register(srcnet->host, srcnet, HTEvent_READ); |
HTHost_register(HTNet_host(srcnet), srcnet, HTEvent_READ); |
HTHost_unregister(srcnet->host, srcnet, HTEvent_WRITE); |
HTHost_unregister(HTNet_host(srcnet), srcnet, HTEvent_WRITE); |
} |
} |
return HT_OK; |
return HT_OK; |
} |
} |