#include typedef request_rec Ns_Conn; void Ns_ConnSetRequiredHeaders (Ns_Conn *conn, char * content_type, int len); void Ns_ConnFlushHeaders (Ns_Conn *conn, int status); int Ns_WriteConn (Ns_Conn *conn, char *data, int len); int Ns_ConnReturnData (Ns_Conn *conn, int status, char *stuff, int len, char *content_type); int Ns_ConnReturnInternalError (Ns_Conn *conn); int Ns_ConnSendFd (request_rec *r, int fd, int nbytes); extern Tcl_Interp *aolcmd_interp; #define Ns_GetConnInterp(conn) aolcmd_interp #define Ns_TclGetConn(interp) Tcl_request_rec