summaryrefslogtreecommitdiffabout
path: root/include/kingate/fastcgi.h
Side-by-side diff
Diffstat (limited to 'include/kingate/fastcgi.h') (more/less context) (ignore whitespace changes)
-rw-r--r--include/kingate/fastcgi.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/kingate/fastcgi.h b/include/kingate/fastcgi.h
index fd293b9..6f136b3 100644
--- a/include/kingate/fastcgi.h
+++ b/include/kingate/fastcgi.h
@@ -20,56 +20,71 @@ namespace kingate {
/**
* socket file descriptor.
*/
int sock;
/**
* @param s the socket name. (if the socket starts with a colon,
* then it is interpreted as a tcp port number.
* @param bl backlog listen queue depth.
*/
fcgi_socket(const char* s,int bl);
/**
* @param s the file descriptor of preopened socket.
*/
fcgi_socket(int s);
~fcgi_socket();
};
/**
* The implementation of the interface to the FastCGI.
*/
class fcgi_interface : public cgi_interface {
public:
/**
+ * buffer for sbin
+ * @see sbin
+ */
+ char buf_sbin[512];
+ /**
* stdin fcgi streambuf.
*/
fcgi_streambuf sbin;
/**
+ * buffer for sbout
+ * @see sbout
+ */
+ char buf_sbout[512];
+ /**
* stdout fcgi streambuf.
*/
fcgi_streambuf sbout;
/**
+ * buffer for sberr
+ * @see sberr
+ */
+ char buf_sberr[512];
+ /**
* stderr fcgi streambuf.
*/
fcgi_streambuf sberr;
/**
* stdin istream.
*/
istream sin;
/**
* stdout ostream.
*/
ostream sout;
/**
* stderr ostream.
*/
ostream serr;
/**
* The FCGI request.
*/
FCGX_Request request;
/**
* @param s the socked used for interfacing with the server.
* @param f the request flags (e.g. FCGI_FAIL_ON_INTR).
*/