$Log$
+ Revision 645.13 2005/04/29 16:26:00 ajc
+ * Removed the CtdlRedirectOutput() API, as we are no longer using it.
+ (Oh happy day; no more temp files!)
+
Revision 645.12 2005/04/27 19:22:57 ajc
* .ASG command: made better use of memory to avoid crashes
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
/* Beginning of cryptography - session nonce */
char cs_nonce[NONCE_SIZE]; /* The nonce for this session's next auth transaction */
- /* Redirect this session's output to somewhere else? */
- FILE *redirect_fp; /* a file instead (will go away) */
+ /* Redirect this session's output to a memory buffer? */
char *redirect_buffer; /* the buffer */
size_t redirect_len; /* length of data in buffer */
size_t redirect_alloc; /* length of allocated buffer */
return;
}
- if (CC->redirect_fp != NULL) {
- fwrite(buf, (size_t)nbytes, (size_t)1, CC->redirect_fp);
- return;
- }
-
#ifndef HAVE_TCP_BUFFERING
/* If we're buffering for later, do that now. */
if (CC->buffering) {
-/*
- * Redirect a session's output to a file.
- * This function may be called with a file handle.
- * Call with NULL to return output to its normal client socket.
- */
-void CtdlRedirectOutput(FILE *fp)
-{
- if (fp != NULL) CC->redirect_fp = fp;
- else CC->redirect_fp = NULL;
-}
-
-
/*
* masterCC is the context we use when not attached to a session. This
* function initializes it.
int convert_login (char *NameToConvert);
void *worker_thread (void *arg);
void become_session(struct CitContext *which_con);
-void CtdlRedirectOutput(FILE *fp);
void InitializeMasterCC(void);
void init_master_fdset(void);
void create_worker(void);