\hypertarget{http__compat_8h}{\section{opal/mca/event/libevent2013/libevent/include/event2/http\+\_\+compat.h File Reference}
\label{http__compat_8h}\index{opal/mca/event/libevent2013/libevent/include/event2/http\+\_\+compat.\+h@{opal/mca/event/libevent2013/libevent/include/event2/http\+\_\+compat.\+h}}
}


Potentially non-\/threadsafe versions of the functions in \hyperlink{http_8h}{http.\+h}\+: provided only for backwards compatibility.  


{\ttfamily \#include $<$event2/event-\/config.\+h$>$}\\*
{\ttfamily \#include $<$event2/util.\+h$>$}\\*
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{http__compat_8h_aae95ca15c179b4b0b8c7bbb7b1da342a}{\#define \hyperlink{http__compat_8h_aae95ca15c179b4b0b8c7bbb7b1da342a}{evhttp\+\_\+request\+\_\+uri}~\hyperlink{http_8h_a78ce0bb30083afddb525cb9fa0b30ae0}{evhttp\+\_\+request\+\_\+get\+\_\+uri}}\label{http__compat_8h_aae95ca15c179b4b0b8c7bbb7b1da342a}

\begin{DoxyCompactList}\small\item\em Returns the request U\+R\+I. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structevhttp}{evhttp} $\ast$ \hyperlink{http__compat_8h_aff4e96ef72ca014740878e3e5f02befc}{evhttp\+\_\+start} (const char $\ast$address, unsigned short port)
\begin{DoxyCompactList}\small\item\em Start an H\+T\+T\+P server on the specified address and port. \end{DoxyCompactList}\item 
struct \hyperlink{structevhttp__connection}{evhttp\+\_\+connection} $\ast$ \hyperlink{http__compat_8h_a3fab40a20af95f525d5d7f21ea215535}{evhttp\+\_\+connection\+\_\+new} (const char $\ast$address, unsigned short port)
\begin{DoxyCompactList}\small\item\em A connection object that can be used to for making H\+T\+T\+P requests. \end{DoxyCompactList}\item 
void \hyperlink{http__compat_8h_a7a3a6de60e64dd0469affb45f267888a}{evhttp\+\_\+connection\+\_\+set\+\_\+base} (struct \hyperlink{structevhttp__connection}{evhttp\+\_\+connection} $\ast$evcon, struct \hyperlink{structevent__base}{event\+\_\+base} $\ast$base)
\begin{DoxyCompactList}\small\item\em Associates an event base with the connection -\/ can only be called on a freshly created connection object that has not been used yet. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Potentially non-\/threadsafe versions of the functions in \hyperlink{http_8h}{http.\+h}\+: provided only for backwards compatibility. 



\subsection{Function Documentation}
\hypertarget{http__compat_8h_a3fab40a20af95f525d5d7f21ea215535}{\index{http\+\_\+compat.\+h@{http\+\_\+compat.\+h}!evhttp\+\_\+connection\+\_\+new@{evhttp\+\_\+connection\+\_\+new}}
\index{evhttp\+\_\+connection\+\_\+new@{evhttp\+\_\+connection\+\_\+new}!http\+\_\+compat.\+h@{http\+\_\+compat.\+h}}
\subsubsection[{evhttp\+\_\+connection\+\_\+new}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf evhttp\+\_\+connection}$\ast$ evhttp\+\_\+connection\+\_\+new (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{address, }
\item[{unsigned short}]{port}
\end{DoxyParamCaption}
)}}\label{http__compat_8h_a3fab40a20af95f525d5d7f21ea215535}


A connection object that can be used to for making H\+T\+T\+P requests. 

The connection object tries to establish the connection when it is given an http request object.

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000040}{Deprecated}]It does not allow an event base to be specified \end{DoxyRefDesc}


References evhttp\+\_\+connection\+\_\+base\+\_\+new().

\hypertarget{http__compat_8h_a7a3a6de60e64dd0469affb45f267888a}{\index{http\+\_\+compat.\+h@{http\+\_\+compat.\+h}!evhttp\+\_\+connection\+\_\+set\+\_\+base@{evhttp\+\_\+connection\+\_\+set\+\_\+base}}
\index{evhttp\+\_\+connection\+\_\+set\+\_\+base@{evhttp\+\_\+connection\+\_\+set\+\_\+base}!http\+\_\+compat.\+h@{http\+\_\+compat.\+h}}
\subsubsection[{evhttp\+\_\+connection\+\_\+set\+\_\+base}]{\setlength{\rightskip}{0pt plus 5cm}void evhttp\+\_\+connection\+\_\+set\+\_\+base (
\begin{DoxyParamCaption}
\item[{struct {\bf evhttp\+\_\+connection} $\ast$}]{evcon, }
\item[{struct {\bf event\+\_\+base} $\ast$}]{base}
\end{DoxyParamCaption}
)}}\label{http__compat_8h_a7a3a6de60e64dd0469affb45f267888a}


Associates an event base with the connection -\/ can only be called on a freshly created connection object that has not been used yet. 

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000041}{Deprecated}]X\+X\+X\+X Why? \end{DoxyRefDesc}


References bufferevent\+\_\+base\+\_\+set().



Referenced by evrpc\+\_\+pool\+\_\+add\+\_\+connection().

\hypertarget{http__compat_8h_aff4e96ef72ca014740878e3e5f02befc}{\index{http\+\_\+compat.\+h@{http\+\_\+compat.\+h}!evhttp\+\_\+start@{evhttp\+\_\+start}}
\index{evhttp\+\_\+start@{evhttp\+\_\+start}!http\+\_\+compat.\+h@{http\+\_\+compat.\+h}}
\subsubsection[{evhttp\+\_\+start}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf evhttp}$\ast$ evhttp\+\_\+start (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{address, }
\item[{unsigned short}]{port}
\end{DoxyParamCaption}
)}}\label{http__compat_8h_aff4e96ef72ca014740878e3e5f02befc}


Start an H\+T\+T\+P server on the specified address and port. 

\begin{DoxyRefDesc}{Deprecated}
\item[\hyperlink{deprecated__deprecated000039}{Deprecated}]It does not allow an event base to be specified\end{DoxyRefDesc}



\begin{DoxyParams}{Parameters}
{\em address} & the address to which the H\+T\+T\+P server should be bound \\
\hline
{\em port} & the port number on which the H\+T\+T\+P server should listen \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
an struct evhttp object 
\end{DoxyReturn}


References evhttp\+\_\+bind\+\_\+socket().

