testserver_8c.tex 1.67 KB
\hypertarget{testserver_8c}{
\section{src/testserver.c File Reference}
\label{testserver_8c}\index{src/testserver.c@{src/testserver.c}}
}
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$socket.h$>$}\par
{\ttfamily \#include $<$string.h$>$}\par
{\ttfamily \#include \char`\"{}server.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}http/request\_\-parser.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}signalHandling.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par
Include dependency graph for testserver.c:
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}{main} ()
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}{
\index{testserver.c@{testserver.c}!main@{main}}
\index{main@{main}!testserver.c@{testserver.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}


Definition at line 14 of file testserver.c.


\begin{DoxyCode}
{
        Logger            logger = new(LoggerStderr, LOGGER_ERR);
        HttpRequestParser parser = new(HttpRequestParser);
        Server            server = new(Server, logger, parser, 11212, SOMAXCONN);
      
        //Server            server = new(Server, logger, parser, 11212, 20);

        init_signals();
        serverRun(server);

        delete(&server);
        delete(&logger);
        delete(&parser);

        return 0;
}
\end{DoxyCode}


Here is the call graph for this function: