version 1.53, 1997/05/28 06:42:21
|
version 1.54, 1997/05/30 15:20:04
|
Line 229 int docid;
|
Line 229 int docid;
|
me->read_sock = INVSOC; |
me->read_sock = INVSOC; |
me->write_sock = INVSOC; |
me->write_sock = INVSOC; |
me->except_sock = INVSOC; |
me->except_sock = INVSOC; |
|
me->read_fd_state = 0; |
|
me->write_fd_state = 0; |
|
me->except_fd_state = 0; |
|
|
/* Update the global context */ |
/* Update the global context */ |
HTList_appendObject (Amaya->reqlist, (void *) me); |
HTList_appendObject (Amaya->reqlist, (void *) me); |
Line 390 static void Thread_deleteAll ()
|
Line 393 static void Thread_deleteAll ()
|
{ |
{ |
if (me->request) |
if (me->request) |
{ |
{ |
# ifndef _WINDOWS |
|
RequestKillAllXtevents (me); |
RequestKillAllXtevents (me); |
# endif /* !_WINDOWS */ |
|
AHTReqContext_delete (me); |
AHTReqContext_delete (me); |
} |
} |
} /* while */ |
} /* while */ |
Line 1132 void QueryInit ()
|
Line 1133 void QueryInit ()
|
|
|
HTEvent_setRegisterCallback (AHTEvent_register); |
HTEvent_setRegisterCallback (AHTEvent_register); |
HTEvent_setUnregisterCallback (AHTEvent_unregister); |
HTEvent_setUnregisterCallback (AHTEvent_unregister); |
|
|
|
# ifdef _WINDOWS |
|
WIN_InitializeSockets (); |
|
# endif _WINDOWS; |
|
|
/* Setup authentication manager */ |
/* Setup authentication manager */ |
/*** |
/*** |
Line 1228 static int LoopForStop (AHTReqC
|
Line 1233 static int LoopForStop (AHTReqC
|
TtaHandleOneEvent (&ev); |
TtaHandleOneEvent (&ev); |
} |
} |
# else /* _WINDOWS */ |
# else /* _WINDOWS */ |
WIN_ProcessSocketActivity (); |
/* WIN_ProcessSocketActivity (); */ |
/** if (GetMessage (&ev, NULL, 0, 0)) |
/** if (GetMessage (&ev, NULL, 0, 0)) |
TtaHandleOneWindowEvent (&ev); **/ |
TtaHandleOneWindowEvent (&ev); **/ |
# endif /* !_WINDOWS */ |
# endif /* !_WINDOWS */ |
Line 1533 boolean error_html;
|
Line 1538 boolean error_html;
|
me->context_tcbf = context_tcbf; |
me->context_tcbf = context_tcbf; |
me->output = tmp_fp; |
me->output = tmp_fp; |
|
|
|
# ifndef _WINDOWS /* TEST TEST */ |
HTRequest_setOutputStream (me->request, AHTFWriter_new (me->request, me->output, YES)); |
HTRequest_setOutputStream (me->request, AHTFWriter_new (me->request, me->output, YES)); |
|
#else |
|
HTRequest_setOutputStream (me->request, HTFWriter_new (me->request, me->output, YES)); |
|
#endif /* _WINDOWS */ |
|
|
/*for the async. request modes, we need to have our |
/*for the async. request modes, we need to have our |
own copy of outputfile and urlname |
own copy of outputfile and urlname |
Line 1650 generated
|
Line 1658 generated
|
if (THD_TRACE) |
if (THD_TRACE) |
fprintf (stderr, "GetObjectWWW: %s is pending. Closing fd %d\n", me->urlName, (int) me->output); |
fprintf (stderr, "GetObjectWWW: %s is pending. Closing fd %d\n", me->urlName, (int) me->output); |
/* free the allocated stream object */ |
/* free the allocated stream object */ |
|
# ifndef _WINDOWS /* TEST TEST */ |
AHTFWriter_FREE (HTRequest_outputStream(me->request)); |
AHTFWriter_FREE (HTRequest_outputStream(me->request)); |
|
# endif /* _WINDOWS */ |
HTRequest_setOutputStream (me->request, (HTStream *) NULL); |
HTRequest_setOutputStream (me->request, (HTStream *) NULL); |
fclose (me->output); |
fclose (me->output); |
me->output = NULL; |
me->output = NULL; |
Line 1725 void *context_tcbf;
|
Line 1735 void *context_tcbf;
|
/*AHTReqContext *me; */ |
/*AHTReqContext *me; */ |
int status; |
int status; |
|
|
#ifndef _WINDOWS |
# ifndef _WINDOWS |
int fd; |
int fd; |
struct stat file_stat; |
struct stat file_stat; |
char *mem_ptr; |
char *mem_ptr; |
Line 1790 void *context_tcbf;
|
Line 1800 void *context_tcbf;
|
TtaFreeMemory (mem_ptr); |
TtaFreeMemory (mem_ptr); |
TtaHandlePendingEvents (); |
TtaHandlePendingEvents (); |
|
|
#endif /*!_WINDOWS */ |
# endif /*!_WINDOWS */ |
|
|
return (status); |
return (status); |
} |
} |
Line 2021 char *outputfile;
|
Line 2031 char *outputfile;
|
output stream */ |
output stream */ |
|
|
HTRequest_setPostCallback (me->request, AHTUpload_callback); |
HTRequest_setPostCallback (me->request, AHTUpload_callback); |
|
# ifndef _WINDOWS /* TEST TEST */ |
|
HTRequest_setOutputStream (me->request, |
|
AHTFWriter_new (me->request, me->output, YES)); |
|
# else |
HTRequest_setOutputStream (me->request, |
HTRequest_setOutputStream (me->request, |
HTFWriter_new (me->request, me->output, YES)); |
HTFWriter_new (me->request, me->output, YES)); |
|
#endif /* WINDOWS */ |
me->anchor = (HTParentAnchor *) HTAnchor_findAddress (urlName); |
me->anchor = (HTParentAnchor *) HTAnchor_findAddress (urlName); |
|
|
/* Set the Content-Type of the file we are uploading */ |
/* Set the Content-Type of the file we are uploading */ |