Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > c82fbb12a1c61d087a9308adf47a46ab > files > 576

ocaml-ocamlnet-devel-2.2.9-10.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Netcgi_fcgi_10.html">
<link rel="next" href="Netcgi1_compat.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Netcgi_env" rel="Chapter" href="Netcgi_env.html">
<link title="Netcgi_types" rel="Chapter" href="Netcgi_types.html">
<link title="Netcgi" rel="Chapter" href="Netcgi.html">
<link title="Netcgi_jserv" rel="Chapter" href="Netcgi_jserv.html">
<link title="Netcgi_jserv_ajp12" rel="Chapter" href="Netcgi_jserv_ajp12.html">
<link title="Netcgi_jserv_app" rel="Chapter" href="Netcgi_jserv_app.html">
<link title="Netcgi_fcgi_10" rel="Chapter" href="Netcgi_fcgi_10.html">
<link title="Netcgi_fcgi" rel="Chapter" href="Netcgi_fcgi.html">
<link title="Netcgi1_compat" rel="Chapter" href="Netcgi1_compat.html"><title>Ocamlnet 2 Reference Manual (netcgi1 add-on) : Netcgi_fcgi</title>
</head>
<body>
<div class="navbar"><a href="Netcgi_fcgi_10.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Netcgi1_compat.html">Next</a>
</div>
<center><h1>Module <a href="type_Netcgi_fcgi.html">Netcgi_fcgi</a></h1></center>
<br>
<pre><span class="keyword">module</span> Netcgi_fcgi: <code class="code">sig</code> <a href="Netcgi_fcgi.html">..</a> <code class="code">end</code></pre>Implementation of FastCGI<br>
<hr width="100%">
<br>
This code is copyright 2003 Eric Stokes, and may be used under
either, the GNU GPL, or the same license as ocamlnet<br>
<pre><span class="keyword">val</span> <a name="VALserv"></a>serv : <code class="type">?config:<a href="Netcgi_env.html#TYPEcgi_config">Netcgi_env.cgi_config</a> -><br>       (<a href="Netcgi_types.cgi_activation.html">Netcgi_types.cgi_activation</a> -> unit) -> <a href="Netcgi.html#TYPEoperating_type">Netcgi.operating_type</a> -> unit</code></pre><div class="info">
This function "serves". It accepts fastcgi connections, builds
  <a href="Netcgi_types.cgi_activation.html"><code class="code">Netcgi_types.cgi_activation</code></a> objects from them and calls a
  function which you supply, passing the activation object as an
  argument.  It gets all the stuff that it needs to add to the
  <code class="code">cgi_activation</code> object from the fcgiRequest structure (req). That
  structure is created when the request is read from the web server
  by fcgi_accept. The stuff that is in there (environment vars,
  stdin, etc) is pretty straitforward, if you're curious, link to the
  low level library, call fcgi_accept yourself, and print it all
  out. Yes, you can make a web app from just the low level library
  (see netcgi_fcgi_10.mli), and that is sometimes useful, for example
  when all you care about is performance.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_fcgi_env"></a>get_fcgi_env : <code class="type">?config:<a href="Netcgi_env.html#TYPEcgi_config">Netcgi_env.cgi_config</a> -> unit -> <a href="Netcgi_env.cgi_environment.html">Netcgi_env.cgi_environment</a></code></pre><div class="info">
This function allow you to accept one connection, and get an
  environment object for it. Note that if you decide to operate this
  way, you must build an activation object, and when you are done call
  (your activation object)#output#close_out (). It you don't do this
  you will run out of file descriptors very soon<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_fcgi_activation"></a>get_fcgi_activation : <code class="type">?config:<a href="Netcgi_env.html#TYPEcgi_config">Netcgi_env.cgi_config</a> -><br>       <a href="Netcgi.html#TYPEoperating_type">Netcgi.operating_type</a> -> <a href="Netcgi_types.cgi_activation.html">Netcgi_types.cgi_activation</a></code></pre><div class="info">
This function will accept one connection and build a cgi activation
  object for you. You have the same responsibility as above, you must
  call (your activation object)#output#close_out (), otherwise you will
  run out of fds very soon.<br>
</div>
</body></html>