Sophie

Sophie

distrib > Fedora > 20 > x86_64 > media > updates > by-pkgid > c579c38484b8ffa244858626df1128ca > files > 222

libhtp-doc-0.5.6-3.fc20.noarch.rpm

\hypertarget{htp__connection__parser_8h}{\section{htp\-\_\-connection\-\_\-parser.\-h File Reference}
\label{htp__connection__parser_8h}\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{htp__connection__parser_8h_a152d24bca0733a89934abe4f57a981b8}{htp\-\_\-connp\-\_\-clear\-\_\-error} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\item 
void \hyperlink{htp__connection__parser_8h_acc7723b7ab867bfde9d5ef78c1faf446}{htp\-\_\-connp\-\_\-close} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp, const \hyperlink{htp__core_8h_a26dd949491d83777aea7905224110162}{htp\-\_\-time\-\_\-t} $\ast$timestamp)
\item 
\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$ \hyperlink{htp__connection__parser_8h_af87403d33d361ee171e6e098a233ef3d}{htp\-\_\-connp\-\_\-create} (\hyperlink{structhtp__cfg__t}{htp\-\_\-cfg\-\_\-t} $\ast$cfg)
\item 
void \hyperlink{htp__connection__parser_8h_aaf70632a3c2d55aca4a1b1c187aafb08}{htp\-\_\-connp\-\_\-destroy} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\item 
void \hyperlink{htp__connection__parser_8h_a8716f61f158d3d39552dbdaccc4157f2}{htp\-\_\-connp\-\_\-destroy\-\_\-all} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\item 
\hyperlink{structhtp__conn__t}{htp\-\_\-conn\-\_\-t} $\ast$ \hyperlink{htp__connection__parser_8h_a01a5e294c8fda405b1942f4d051e4ce1}{htp\-\_\-connp\-\_\-get\-\_\-connection} (const \hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\item 
\hyperlink{structhtp__tx__t}{htp\-\_\-tx\-\_\-t} $\ast$ \hyperlink{htp__connection__parser_8h_a789bb620392745356b5968d091ddd87b}{htp\-\_\-connp\-\_\-get\-\_\-in\-\_\-tx} (const \hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\item 
\hyperlink{structhtp__log__t}{htp\-\_\-log\-\_\-t} $\ast$ \hyperlink{htp__connection__parser_8h_a1bcf1c791756866aa98c978b97579beb}{htp\-\_\-connp\-\_\-get\-\_\-last\-\_\-error} (const \hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\item 
\hyperlink{structhtp__tx__t}{htp\-\_\-tx\-\_\-t} $\ast$ \hyperlink{htp__connection__parser_8h_a9d35a41420267ba5b72153fbd41ab594}{htp\-\_\-connp\-\_\-get\-\_\-out\-\_\-tx} (const \hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\item 
void $\ast$ \hyperlink{htp__connection__parser_8h_ad01cf540f53fe5c0db9411447abe5092}{htp\-\_\-connp\-\_\-get\-\_\-user\-\_\-data} (const \hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\item 
void \hyperlink{htp__connection__parser_8h_a9f18bc1870a26ca9389cb2ebd63940f2}{htp\-\_\-connp\-\_\-open} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp, const char $\ast$client\-\_\-addr, int client\-\_\-port, const char $\ast$server\-\_\-addr, int server\-\_\-port, \hyperlink{htp__core_8h_a26dd949491d83777aea7905224110162}{htp\-\_\-time\-\_\-t} $\ast$timestamp)
\item 
void \hyperlink{htp__connection__parser_8h_ab19d778e835e2a00358e76739b7c5f68}{htp\-\_\-connp\-\_\-set\-\_\-user\-\_\-data} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp, const void $\ast$user\-\_\-data)
\item 
int \hyperlink{htp__connection__parser_8h_a2212edc93dc47fd615a30297f8faad60}{htp\-\_\-connp\-\_\-req\-\_\-data} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp, const \hyperlink{htp__core_8h_a26dd949491d83777aea7905224110162}{htp\-\_\-time\-\_\-t} $\ast$timestamp, const void $\ast$data, size\-\_\-t len)
\item 
size\-\_\-t \hyperlink{htp__connection__parser_8h_aabff53178e69819d0ea8509557c0ef29}{htp\-\_\-connp\-\_\-req\-\_\-data\-\_\-consumed} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\item 
int \hyperlink{htp__connection__parser_8h_a7bf7c40f55013deddf338b903e4310a4}{htp\-\_\-connp\-\_\-res\-\_\-data} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp, const \hyperlink{htp__core_8h_a26dd949491d83777aea7905224110162}{htp\-\_\-time\-\_\-t} $\ast$timestamp, const void $\ast$data, size\-\_\-t len)
\item 
size\-\_\-t \hyperlink{htp__connection__parser_8h_a91550144cfb2fe87ba258050716cc705}{htp\-\_\-connp\-\_\-res\-\_\-data\-\_\-consumed} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\item 
\hyperlink{structhtp__tx__t}{htp\-\_\-tx\-\_\-t} $\ast$ \hyperlink{htp__connection__parser_8h_ae9f11134051280a0127eaa26c63b0c4d}{htp\-\_\-connp\-\_\-tx\-\_\-create} (\hyperlink{structhtp__connp__t}{htp\-\_\-connp\-\_\-t} $\ast$connp)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Ivan Ristic \href{mailto:ivanr@webkreator.com}{\tt ivanr@webkreator.\-com} 
\end{DoxyAuthor}


\subsection{Function Documentation}
\hypertarget{htp__connection__parser_8h_a152d24bca0733a89934abe4f57a981b8}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-clear\-\_\-error@{htp\-\_\-connp\-\_\-clear\-\_\-error}}
\index{htp\-\_\-connp\-\_\-clear\-\_\-error@{htp\-\_\-connp\-\_\-clear\-\_\-error}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-clear\-\_\-error}]{\setlength{\rightskip}{0pt plus 5cm}void htp\-\_\-connp\-\_\-clear\-\_\-error (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_a152d24bca0733a89934abe4f57a981b8}
Clears the most recent error, if any.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\hypertarget{htp__connection__parser_8h_acc7723b7ab867bfde9d5ef78c1faf446}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-close@{htp\-\_\-connp\-\_\-close}}
\index{htp\-\_\-connp\-\_\-close@{htp\-\_\-connp\-\_\-close}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-close}]{\setlength{\rightskip}{0pt plus 5cm}void htp\-\_\-connp\-\_\-close (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp, }
\item[{const {\bf htp\-\_\-time\-\_\-t} $\ast$}]{timestamp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_acc7723b7ab867bfde9d5ef78c1faf446}
Closes the connection associated with the supplied parser.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\mbox{\tt in}  & {\em timestamp} & Optional. \\
\hline
\end{DoxyParams}
\hypertarget{htp__connection__parser_8h_af87403d33d361ee171e6e098a233ef3d}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-create@{htp\-\_\-connp\-\_\-create}}
\index{htp\-\_\-connp\-\_\-create@{htp\-\_\-connp\-\_\-create}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-create}]{\setlength{\rightskip}{0pt plus 5cm}{\bf htp\-\_\-connp\-\_\-t}$\ast$ htp\-\_\-connp\-\_\-create (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-cfg\-\_\-t} $\ast$}]{cfg}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_af87403d33d361ee171e6e098a233ef3d}
Creates a new connection parser using the provided configuration. Because the configuration structure is used directly, in a multithreaded environment you are not allowed to change the structure, ever. If you have a need to change configuration on per-\/connection basis, make a copy of the configuration structure to go along with every connection parser.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em cfg} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
New connection parser instance, or N\-U\-L\-L on error. 
\end{DoxyReturn}
\hypertarget{htp__connection__parser_8h_aaf70632a3c2d55aca4a1b1c187aafb08}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-destroy@{htp\-\_\-connp\-\_\-destroy}}
\index{htp\-\_\-connp\-\_\-destroy@{htp\-\_\-connp\-\_\-destroy}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-destroy}]{\setlength{\rightskip}{0pt plus 5cm}void htp\-\_\-connp\-\_\-destroy (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_aaf70632a3c2d55aca4a1b1c187aafb08}
Destroys the connection parser and its data structures, leaving all the data (connection, transactions, etc) intact.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\hypertarget{htp__connection__parser_8h_a8716f61f158d3d39552dbdaccc4157f2}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-destroy\-\_\-all@{htp\-\_\-connp\-\_\-destroy\-\_\-all}}
\index{htp\-\_\-connp\-\_\-destroy\-\_\-all@{htp\-\_\-connp\-\_\-destroy\-\_\-all}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-destroy\-\_\-all}]{\setlength{\rightskip}{0pt plus 5cm}void htp\-\_\-connp\-\_\-destroy\-\_\-all (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_a8716f61f158d3d39552dbdaccc4157f2}
Destroys the connection parser, its data structures, as well as the connection and its transactions.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\hypertarget{htp__connection__parser_8h_a01a5e294c8fda405b1942f4d051e4ce1}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-get\-\_\-connection@{htp\-\_\-connp\-\_\-get\-\_\-connection}}
\index{htp\-\_\-connp\-\_\-get\-\_\-connection@{htp\-\_\-connp\-\_\-get\-\_\-connection}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-get\-\_\-connection}]{\setlength{\rightskip}{0pt plus 5cm}{\bf htp\-\_\-conn\-\_\-t}$\ast$ htp\-\_\-connp\-\_\-get\-\_\-connection (
\begin{DoxyParamCaption}
\item[{const {\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_a01a5e294c8fda405b1942f4d051e4ce1}
Returns the connection associated with the connection parser.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{structhtp__conn__t}{htp\-\_\-conn\-\_\-t} instance, or N\-U\-L\-L if one is not available. 
\end{DoxyReturn}
\hypertarget{htp__connection__parser_8h_a789bb620392745356b5968d091ddd87b}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-get\-\_\-in\-\_\-tx@{htp\-\_\-connp\-\_\-get\-\_\-in\-\_\-tx}}
\index{htp\-\_\-connp\-\_\-get\-\_\-in\-\_\-tx@{htp\-\_\-connp\-\_\-get\-\_\-in\-\_\-tx}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-get\-\_\-in\-\_\-tx}]{\setlength{\rightskip}{0pt plus 5cm}{\bf htp\-\_\-tx\-\_\-t}$\ast$ htp\-\_\-connp\-\_\-get\-\_\-in\-\_\-tx (
\begin{DoxyParamCaption}
\item[{const {\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_a789bb620392745356b5968d091ddd87b}
Retrieves the pointer to the active inbound transaction. In connection parsing mode there can be many open transactions, and up to 2 active transactions at any one time. This is due to H\-T\-T\-P pipelining. Can be N\-U\-L\-L.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Active inbound transaction, or N\-U\-L\-L if there isn't one. 
\end{DoxyReturn}
\hypertarget{htp__connection__parser_8h_a1bcf1c791756866aa98c978b97579beb}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-get\-\_\-last\-\_\-error@{htp\-\_\-connp\-\_\-get\-\_\-last\-\_\-error}}
\index{htp\-\_\-connp\-\_\-get\-\_\-last\-\_\-error@{htp\-\_\-connp\-\_\-get\-\_\-last\-\_\-error}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-get\-\_\-last\-\_\-error}]{\setlength{\rightskip}{0pt plus 5cm}{\bf htp\-\_\-log\-\_\-t}$\ast$ htp\-\_\-connp\-\_\-get\-\_\-last\-\_\-error (
\begin{DoxyParamCaption}
\item[{const {\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_a1bcf1c791756866aa98c978b97579beb}
Returns the last error that occurred with this connection parser. Do note, however, that the value in this field will only be valid immediately after an error condition, but it is not guaranteed to remain valid if the parser is invoked again.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A pointer to an \hyperlink{structhtp__log__t}{htp\-\_\-log\-\_\-t} instance if there is an error, or N\-U\-L\-L if there isn't. 
\end{DoxyReturn}
\hypertarget{htp__connection__parser_8h_a9d35a41420267ba5b72153fbd41ab594}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-get\-\_\-out\-\_\-tx@{htp\-\_\-connp\-\_\-get\-\_\-out\-\_\-tx}}
\index{htp\-\_\-connp\-\_\-get\-\_\-out\-\_\-tx@{htp\-\_\-connp\-\_\-get\-\_\-out\-\_\-tx}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-get\-\_\-out\-\_\-tx}]{\setlength{\rightskip}{0pt plus 5cm}{\bf htp\-\_\-tx\-\_\-t}$\ast$ htp\-\_\-connp\-\_\-get\-\_\-out\-\_\-tx (
\begin{DoxyParamCaption}
\item[{const {\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_a9d35a41420267ba5b72153fbd41ab594}
Retrieves the pointer to the active outbound transaction. In connection parsing mode there can be many open transactions, and up to 2 active transactions at any one time. This is due to H\-T\-T\-P pipelining. Can be N\-U\-L\-L.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Active outbound transaction, or N\-U\-L\-L if there isn't one. 
\end{DoxyReturn}
\hypertarget{htp__connection__parser_8h_ad01cf540f53fe5c0db9411447abe5092}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-get\-\_\-user\-\_\-data@{htp\-\_\-connp\-\_\-get\-\_\-user\-\_\-data}}
\index{htp\-\_\-connp\-\_\-get\-\_\-user\-\_\-data@{htp\-\_\-connp\-\_\-get\-\_\-user\-\_\-data}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-get\-\_\-user\-\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ htp\-\_\-connp\-\_\-get\-\_\-user\-\_\-data (
\begin{DoxyParamCaption}
\item[{const {\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_ad01cf540f53fe5c0db9411447abe5092}
Retrieve the user data associated with this connection parser.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
User data, or N\-U\-L\-L if there isn't any. 
\end{DoxyReturn}
\hypertarget{htp__connection__parser_8h_a9f18bc1870a26ca9389cb2ebd63940f2}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-open@{htp\-\_\-connp\-\_\-open}}
\index{htp\-\_\-connp\-\_\-open@{htp\-\_\-connp\-\_\-open}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-open}]{\setlength{\rightskip}{0pt plus 5cm}void htp\-\_\-connp\-\_\-open (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp, }
\item[{const char $\ast$}]{client\-\_\-addr, }
\item[{int}]{client\-\_\-port, }
\item[{const char $\ast$}]{server\-\_\-addr, }
\item[{int}]{server\-\_\-port, }
\item[{{\bf htp\-\_\-time\-\_\-t} $\ast$}]{timestamp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_a9f18bc1870a26ca9389cb2ebd63940f2}
Opens connection.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\mbox{\tt in}  & {\em client\-\_\-addr} & Client address \\
\hline
\mbox{\tt in}  & {\em client\-\_\-port} & Client port \\
\hline
\mbox{\tt in}  & {\em server\-\_\-addr} & Server address \\
\hline
\mbox{\tt in}  & {\em server\-\_\-port} & Server port \\
\hline
\mbox{\tt in}  & {\em timestamp} & Optional. \\
\hline
\end{DoxyParams}
\hypertarget{htp__connection__parser_8h_a2212edc93dc47fd615a30297f8faad60}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-req\-\_\-data@{htp\-\_\-connp\-\_\-req\-\_\-data}}
\index{htp\-\_\-connp\-\_\-req\-\_\-data@{htp\-\_\-connp\-\_\-req\-\_\-data}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-req\-\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}int htp\-\_\-connp\-\_\-req\-\_\-data (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp, }
\item[{const {\bf htp\-\_\-time\-\_\-t} $\ast$}]{timestamp, }
\item[{const void $\ast$}]{data, }
\item[{size\-\_\-t}]{len}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_a2212edc93dc47fd615a30297f8faad60}

\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\mbox{\tt in}  & {\em timestamp} & \\
\hline
\mbox{\tt in}  & {\em data} & \\
\hline
\mbox{\tt in}  & {\em len} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
H\-T\-P\-\_\-\-S\-T\-R\-E\-A\-M\-\_\-\-D\-A\-T\-A, H\-T\-P\-\_\-\-S\-T\-R\-E\-A\-M\-\_\-\-E\-R\-R\-O\-R or S\-T\-E\-A\-M\-\_\-\-S\-T\-A\-T\-E\-\_\-\-D\-A\-T\-A\-\_\-\-O\-T\-H\-E\-R (see Q\-U\-I\-C\-K\-\_\-\-S\-T\-A\-R\-T). H\-T\-P\-\_\-\-S\-T\-R\-E\-A\-M\-\_\-\-C\-L\-O\-S\-E\-D and H\-T\-P\-\_\-\-S\-T\-R\-E\-A\-M\-\_\-\-T\-U\-N\-N\-E\-L are also possible. 
\end{DoxyReturn}
\hypertarget{htp__connection__parser_8h_aabff53178e69819d0ea8509557c0ef29}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-req\-\_\-data\-\_\-consumed@{htp\-\_\-connp\-\_\-req\-\_\-data\-\_\-consumed}}
\index{htp\-\_\-connp\-\_\-req\-\_\-data\-\_\-consumed@{htp\-\_\-connp\-\_\-req\-\_\-data\-\_\-consumed}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-req\-\_\-data\-\_\-consumed}]{\setlength{\rightskip}{0pt plus 5cm}size\-\_\-t htp\-\_\-connp\-\_\-req\-\_\-data\-\_\-consumed (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_aabff53178e69819d0ea8509557c0ef29}
Returns the number of bytes consumed from the most recent inbound data chunk. Normally, an invocation of \hyperlink{htp__request_8c_a2212edc93dc47fd615a30297f8faad60}{htp\-\_\-connp\-\_\-req\-\_\-data()} will consume all data from the supplied buffer, but there are circumstances where only partial consumption is possible. In such cases H\-T\-P\-\_\-\-S\-T\-R\-E\-A\-M\-\_\-\-D\-A\-T\-A\-\_\-\-O\-T\-H\-E\-R will be returned. Consumed bytes are no longer necessary, but the remainder of the buffer will be need to be saved for later.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of bytes consumed from the last data chunk sent for inbound processing.
\end{DoxyReturn}
Returns how many bytes from the current data chunks were consumed so far.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of bytes consumed. 
\end{DoxyReturn}
\hypertarget{htp__connection__parser_8h_a7bf7c40f55013deddf338b903e4310a4}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-res\-\_\-data@{htp\-\_\-connp\-\_\-res\-\_\-data}}
\index{htp\-\_\-connp\-\_\-res\-\_\-data@{htp\-\_\-connp\-\_\-res\-\_\-data}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-res\-\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}int htp\-\_\-connp\-\_\-res\-\_\-data (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp, }
\item[{const {\bf htp\-\_\-time\-\_\-t} $\ast$}]{timestamp, }
\item[{const void $\ast$}]{data, }
\item[{size\-\_\-t}]{len}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_a7bf7c40f55013deddf338b903e4310a4}
Process a chunk of outbound (server or response) data.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\mbox{\tt in}  & {\em timestamp} & Optional. \\
\hline
\mbox{\tt in}  & {\em data} & \\
\hline
\mbox{\tt in}  & {\em len} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
H\-T\-P\-\_\-\-O\-K on state change, H\-T\-P\-\_\-\-E\-R\-R\-O\-R on error, or H\-T\-P\-\_\-\-D\-A\-T\-A when more data is needed 
\end{DoxyReturn}
\hypertarget{htp__connection__parser_8h_a91550144cfb2fe87ba258050716cc705}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-res\-\_\-data\-\_\-consumed@{htp\-\_\-connp\-\_\-res\-\_\-data\-\_\-consumed}}
\index{htp\-\_\-connp\-\_\-res\-\_\-data\-\_\-consumed@{htp\-\_\-connp\-\_\-res\-\_\-data\-\_\-consumed}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-res\-\_\-data\-\_\-consumed}]{\setlength{\rightskip}{0pt plus 5cm}size\-\_\-t htp\-\_\-connp\-\_\-res\-\_\-data\-\_\-consumed (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_a91550144cfb2fe87ba258050716cc705}
Returns the number of bytes consumed from the most recent outbound data chunk. Normally, an invocation of \hyperlink{htp__connection__parser_8h_a7bf7c40f55013deddf338b903e4310a4}{htp\-\_\-connp\-\_\-res\-\_\-data()} will consume all data from the supplied buffer, but there are circumstances where only partial consumption is possible. In such cases H\-T\-P\-\_\-\-S\-T\-R\-E\-A\-M\-\_\-\-D\-A\-T\-A\-\_\-\-O\-T\-H\-E\-R will be returned. Consumed bytes are no longer necessary, but the remainder of the buffer will be need to be saved for later.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The number of bytes consumed from the last data chunk sent for outbound processing. 
\end{DoxyReturn}
\hypertarget{htp__connection__parser_8h_ab19d778e835e2a00358e76739b7c5f68}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-set\-\_\-user\-\_\-data@{htp\-\_\-connp\-\_\-set\-\_\-user\-\_\-data}}
\index{htp\-\_\-connp\-\_\-set\-\_\-user\-\_\-data@{htp\-\_\-connp\-\_\-set\-\_\-user\-\_\-data}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-set\-\_\-user\-\_\-data}]{\setlength{\rightskip}{0pt plus 5cm}void htp\-\_\-connp\-\_\-set\-\_\-user\-\_\-data (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp, }
\item[{const void $\ast$}]{user\-\_\-data}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_ab19d778e835e2a00358e76739b7c5f68}
Associate user data with the supplied parser.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\mbox{\tt in}  & {\em user\-\_\-data} & \\
\hline
\end{DoxyParams}
\hypertarget{htp__connection__parser_8h_ae9f11134051280a0127eaa26c63b0c4d}{\index{htp\-\_\-connection\-\_\-parser.\-h@{htp\-\_\-connection\-\_\-parser.\-h}!htp\-\_\-connp\-\_\-tx\-\_\-create@{htp\-\_\-connp\-\_\-tx\-\_\-create}}
\index{htp\-\_\-connp\-\_\-tx\-\_\-create@{htp\-\_\-connp\-\_\-tx\-\_\-create}!htp_connection_parser.h@{htp\-\_\-connection\-\_\-parser.\-h}}
\subsubsection[{htp\-\_\-connp\-\_\-tx\-\_\-create}]{\setlength{\rightskip}{0pt plus 5cm}{\bf htp\-\_\-tx\-\_\-t}$\ast$ htp\-\_\-connp\-\_\-tx\-\_\-create (
\begin{DoxyParamCaption}
\item[{{\bf htp\-\_\-connp\-\_\-t} $\ast$}]{connp}
\end{DoxyParamCaption}
)}}\label{htp__connection__parser_8h_ae9f11134051280a0127eaa26c63b0c4d}
Create a new transaction using the connection parser provided.


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em connp} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Transaction instance on success, N\-U\-L\-L on failure. 
\end{DoxyReturn}